This is a Node.js and MongoDB application for managing a game leaderboard. Players can submit their scores, and the leaderboard displays the top scores.
- Submit player scores
- Display top player scores
- Node.js
- MongoDB
-
Clone the repository:
git clone https://github.com/coderooz/game-leaderboard.git cd game-leaderboard
-
Install the dependencies:
npm install express mongoose body-parser
-
Start MongoDB server:
mongod
-
Run the application:
npm start
-
Open your browser and navigate to
http://localhost:3000
to access the Game Leaderboard API.
- GET /api/players: Retrieve the top 10 player scores.
- POST /api/players: Add a new player score. Example request body:
{ "name": "Player1", "score": 100 }
- Ranit Saha - GitHub Profile
If you would like to contribute to this project, please fork the repository and submit a pull request.
Please read the CODE_OF_CONDUCT.md file for details on our code of conduct.
This project is licensed under the Private Use License. See the LICENSE.md file for more details.