This repo now contains both:
./→ Frontend (Next.js, Vercel)./backend→ Backend (Discord bot + API)
cp .env.example .env.local
npm install
npm run devAUTH_SECRETAUTH_DISCORD_IDAUTH_DISCORD_SECRETNEXT_PUBLIC_DISCORD_INVITE_URLNEXT_PUBLIC_API_BASE_URL(for production:https://api.guildpay.io/api)
npm run dev
npm run build
npm run lint
npm run typecheckcd backend
cp .env.example .env
npm ci
npm run prisma:generate
npm run prisma:push
npm run build
npm startBASE_URLDISCORD_TOKENDISCORD_CLIENT_IDSTRIPE_SECRET_KEYSTRIPE_WEBHOOK_SECRETNOWPAYMENTS_API_KEYNOWPAYMENTS_IPN_SECRETDATABASE_URL
GET /api/healthPOST /api/setupPOST /api/productsPATCH /api/products/:productIdPOST /api/discord/panels/createPOST /api/checkout/createPOST /api/webhooks/stripePOST /api/webhooks/nowpaymentsGET /api/webhooks/eventsGET /api/dashboard/seller/:sellerId/*GET /api/inventory/seller/:sellerId/summaryPOST /api/payouts/crypto/requestGET /api/payouts/crypto/requests
- Frontend is hosted on Vercel.
- Backend is intended to run on a VPS and be exposed at
api.guildpay.io. - Payments are verified by webhooks before delivery.