"ResBattleArena" is a web application game where you can enjoy real-time 1-on-1 debates online. Players choose a side—either for or against—and take turns sending arguments to support their stance. After the debate ends, an AI determines the winner and provides feedback. Sharpen your logical thinking and enhance your debating skills in this engaging battle of words.
- React
- Next.js (AppRouter)
- Tailwind CSS
- Next.js (RouteHandler)
- Hono
- NextAuth
- Drizzle
- Vercel AI SDK
- Vercel
- Vercel Postgres
- Cloudflare AI Gateway
- Install Node.js
- Enable pnpm
corepack enable
- Install dependencies
pnpm install
- Create environment file
cp .env.local.example .env.local
Copy the required information from vercel/postgres
, google cloud
, and some AI services.
And, execute the following command to generate AUTH_SECRET
npx auth secret
- Migrate database
pnpm migrate
pnpm dev
- Start development serverpnpm check
- Check linting and formattingpnpm fix
- Fix linting and formattingpnpm typecheck
- Check Type errorspnpm generate:drizzle
- Generate migration files for drizzlepnpm migrate
- Migrate database with drizzle