A modern SaaS web application that leverages AI to analyze and evaluate debate arguments, helping users improve their critical thinking and argumentation skills.
- User Authentication: Secure email/password registration and login with JWT tokens
- Debate Rooms: Create or join debate rooms for structured discussions
- AI Analysis: Real-time argument analysis covering:
- Argument strength
- Relevance
- Evidence usage
- Logical consistency
- Engagement with opposing points
- ELO Rating System: Fair skill-based rating system
- Live Debate Interface: Split-layout for real-time participation
- Post-Debate Analytics: Detailed feedback and metrics
- Leaderboard: Global ranking system
- Responsive Design: Mobile-friendly
- Next.js 16, React 19, TypeScript, Tailwind CSS
- PostgreSQL with Prisma ORM
- JWT Authentication with bcryptjs
- OpenAI API ready
- Zustand for state management
- Node.js 18+
- PostgreSQL database
- Install dependencies:
npm install - Set up
.env.localwith database URL and API keys - Run migrations:
npx prisma migrate dev --name init - Start dev server:
npm run dev
Open http://localhost:3000 to see the result.
app/
├── api/ (authentication, debates, arguments)
├── components/ (Header, Navigation, Button)
├── auth/ (login, register pages)
├── dashboard/
├── leaderboard/
├── profile/
└── debates/
lib/
├── auth/ (JWT, middleware)
├── utils/
└── prisma.ts
prisma/
└── schema.prisma
POST /api/auth/register- RegisterPOST /api/auth/login- LoginGET/POST /api/debates- Manage debatesPOST /api/arguments- Submit arguments
DebateIQ - Where Logic Meets Learning