Battlef
A production-grade esports tournament platform — organizers run tournaments, players form teams and compete, and money moves safely.
Battlef is an esports tournament platform I'm building toward launch as a startup. Organizers create multi-game tournaments (BGMI, Valorant, CS:GO and more) with entry fees; players form teams, send invites, register rosters, and climb stats, results and final standings. Underneath runs a full marketplace economy — entry-fee payments, organizer bank accounts and balances, a balance ledger, automated payouts, refunds and platform-revenue tracking — reconciled by a scheduled settlement engine. It spans a Next.js web app and a full Flutter mobile app on a hardened Node.js/Express + PostgreSQL (Prisma) + Redis backend, with Google sign-in, Razorpay and in-app billing, FCM push, and versioned, Swagger-documented APIs.
Highlights
- Engineered a marketplace economy, not just checkout: entry-fee payments, organizer bank accounts and balances, a balance ledger, automated payout transactions, refunds and platform-revenue tracking — reconciled by a scheduled settlement engine.
- Modeled the full tournament domain in PostgreSQL/Prisma (~25 models): games, tournaments, teams, invitations, rosters, registrations, match details/results, final standings, stats and audit logs.
- Built two clients on one API — a Next.js web app and a full Flutter mobile app (Google sign-in, Razorpay + in-app purchases, FCM push, Crashlytics/Analytics, embedded match streams).
- Hardened it for production: rate limiting, Google token replay protection, a JWT blacklist for real token revocation, env/secret validation, Helmet/CORS/validation, and structured Pino logging with sensitive-data redaction.
- Shipped a versioned, Swagger-documented REST API with Redis caching, pagination, web-push/FCM notifications and an AWS deployment path.