Monetize, manage and sell roles within your Discord community.
- Create
appsettings.json
andpaymentsettings.yaml
files in project root directory using templates in./src/AiryPayPay.Discord
and configure them. - Add
.env
file using template in project root directory:
Environment file sample
DISCORD_TOKEN=""
POSTGRES_DB=""
POSTGRES_USER=""
POSTGRES_PASSWORD=""
POSTGRES_PUBLIC_PORT=""
RABBITMQ_HOST=""
RABBITMQ_USER=""
RABBITMQ_PASSWORD=""
RABBITMQ_PORT=""
RABBITMQ_WEB_PORT=""
-
Open 80 port to allow payment callbacks.
-
Update database using Ef Core commands
-
Start the project:
docker compose up -d
- Update database using EF CLI commands.
Note
Run in project container terminal.
Ef Core commands
Create migration
dotnet ef migrations add --project src/AiryPayNew.Infrastructure/AiryPayNew.Infrastructure.csproj --startup-project src/AiryPayNew.Discord/AiryPayNew.Discord.csproj --context AiryPayNew.Infrastructure.Data.ApplicationDbContext --configuration Debug --verbose <Migration name>
Apply migrations
dotnet ef database update --project src/AiryPayNew.Infrastructure/AiryPayNew.Infrastructure.csproj --startup-project src/AiryPayNew.Discord/AiryPayNew.Discord.csproj --context AiryPayNew.Infrastructure.Data.ApplicationDbContext --configuration Debug --verbose