Skip to content

airy-pay/airy-pay-new

Repository files navigation

Logo AiryPay

Main workflow Main workflow Main workflow Main workflow

Monetize, manage and sell roles within your Discord community.

Banner

Manual deployment

  1. Create appsettings.json and paymentsettings.yaml files in project root directory using templates in ./src/AiryPayPay.Discord and configure them.
  2. 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=""
  1. Open 80 port to allow payment callbacks.

  2. Update database using Ef Core commands

  3. Start the project:

docker compose up -d
  1. 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

About

Discord server monetization service

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published