🎮 Physics Conquest Game
This is a Multiplayer Quiz Game about Physics. But, how works?
- The Players enter in Game
- The Administrator starts the Game
- If the player hits a question, he gets a point
- If the player misses a question, he loses a point
- The Administrator finishes the Game
📷 Printscreens
🔧 How to Play
- Clone the Github Repository:
git clone https://github.com/Windows87/physics-conquest-game
- Enter Directory:
cd physics-conquest-game
- Install npm modules:
npm install
- Start server:
npm start
- Terminal will show a IP (Example: 0.0.0.0)
- The players need enter in this IP
- The Admin need enter in this IP/admin (Example: 0.0.0.0/admin)
👷 For Developers
Stack
- ReactJS
- NodeJS
- Express and NeDB
- Socket.io
API
GET
api/questions/ - Get all Questions
GET
api/questions/[QuestionID] - Get Question by Id
POST
api/questions/ - Create Question. Body Example:
{
"title": "As an object falls in the absence of air resistance, its",
"answers": [
"Speed increases",
"Acceleration increases",
"Both of these",
"None of these"
],
"correct_answer": "Speed increases"
}
DELETE
- /api/questions/[QuestionID] - Delele Question by Id