Appearance
Environments & URLs
A reference for ports, the routes worth knowing, and the environment variables the platform reads.
Local ports
| App | Path | Port |
|---|---|---|
| Player site | apps/web | 3000 |
| Admin | apps/admin | 3001 |
| Support | apps/support | 3002 |
| API (Hono) | apps/api | 8787 |
| Email service | apps/email | 8788 |
| Docs | apps/docs | 3003 |
Environment variables
The full list lives in .env.example. The ones that matter most for a working local stack:
DATABASE_URL— PostgreSQL connection string.AUTH_SECRET/NEXTAUTH_SECRET— session signing.NEXTAUTH_URL— usuallyhttp://localhost:3000.NEXT_PUBLIC_API_URL— usuallyhttp://localhost:8787.WALLET_ENCRYPTION_KEY— encryption for wallet data.
Payment and email integrations add their own keys (CRYPTOCLOUD_*, PAYOU_*, RESEND_API_KEY, EMAIL_SERVICE_API_KEY). Keep real secrets in .env and out of the repo.
API surface
The Hono API groups its routes by domain. These are the prefixes you will see most often:
| Prefix | Area |
|---|---|
/user/* | Profile, sessions, password, 2FA |
/wallet/* | Balances, deposits, withdrawals, addresses, tips, bonuses |
/game/* | Catalog, sessions, favorites, recently played |
/platform/* | Provider callbacks for bets, wins, and free rounds |
/payments/* | Payou fiat payments |
/webhook/* | CryptoCloud deposit postbacks |
/vip/* | VIP status, bonuses, rakeback |
/support/* | Player support conversations and SSE |
/notifications/* | In-app notification inbox |
Admin actions are served by the admin app itself under /api/admin/*, each guarded by a permission. The access model explains how that guard works.