A multiplayer trivia game with React Native frontend and Node.js backend.
This repository is organized as a monorepo containing both frontend and backend code:
- frontend/: React Native application built with Expo
- backend/: Node.js server with Express and PostgreSQL database
-
Navigate to the backend directory:
cd backend -
Install dependencies:
npm install -
Create a
.envfile with your PostgreSQL credentials:PORT=3000 DB_NAME=your_database_name DB_USER=your_database_user DB_PASSWORD=your_database_password DB_HOST=localhost
-
Populate the database:
node src/seeders/populateDatabase.js -
Start the server:
npm start
- Navigate to the frontend directory:
cd frontend - Install dependencies:
npm install - Update the API_BASE_URL in
utils/api.jsto point to your backend server - Start the Expo development server:
npm start
- Daily trivia challenges
- Practice mode with customizable categories and difficulty levels
- Multiplayer mode to play with friends
- Learning path for continuous improvement