A multiplayer web-based puzzle game where teams collaborate across two roles (Team A and Team B) to solve challenges. Team B (Hawkins Lab) acts as the hint providers for Team A.
- Team-based Gameplay: Players join rooms as either Team A or Team B.
- Asymmetric Mechanics: Team A solves the main questions, while Team B can submit hints to guide them.
- Real-time Leaderboard: Track scores of different rooms and teams on the
/leaderpage. - Secure Authentication: JWT-based login and signup using bcrypt for password hashing.
- Modern Tech Stack: Built with Vite, React 19, Tailwind CSS v4, and Prisma ORM.
- Framework: React 19
- Build Tool: Vite
- Styling: Tailwind CSS v4, Framer Motion (for animations)
- Routing: React Router DOM
- Icons: Lucide React
- Server: Node.js, Express
- Database: MongoDB (via Prisma ORM)
- Authentication: JSON Web Tokens (JWT), bcrypt
This project uses a monorepo-style structure:
frontend/: Contains the React/Vite application.backend/: Contains the Express server, Prisma schema, and API routes.
- Node.js (v18+ recommended)
- MongoDB database URL
- Navigate to the
backenddirectory:cd backend - Install dependencies:
npm install
- Create a
.envfile in thebackenddirectory with the following variables:DATABASE_URL="your-mongodb-url" JWT_SECRET="your-secret-key"
- Generate the Prisma client:
npx prisma generate
- Start the backend server:
The backend will run on
npm start
http://localhost:3000.
- Navigate to the
frontenddirectory:cd frontend - Install dependencies:
npm install
- Start the development server:
The frontend will be available at
npm run dev
http://localhost:5173.
- Login: Users create an account or log in.
- Dashboard: Users join a game room as part of a specific team (A or B).
- Rounds: Each round presents questions. Team B receives hints/answers that they can selectively communicate to Team A.
- Leaderboard: Displays the live points for each room/team.