https://github.com/coderooz/game-leaderboard
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.
https://github.com/coderooz/game-leaderboard
gameleaderboard javascript mongodb nodejs
Last synced: 5 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/coderooz/game-leaderboard
- Owner: coderooz
- License: mit
- Created: 2024-07-20T15:51:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-22T08:13:05.000Z (about 1 year ago)
- Last Synced: 2025-08-30T07:02:59.420Z (6 months ago)
- Topics: gameleaderboard, javascript, mongodb, nodejs
- Language: JavaScript
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Game Leaderboard
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.
## Features
- Submit player scores
- Display top player scores
## Requirements
- Node.js
- MongoDB
## Installation
1. Clone the repository:
```bash
git clone https://github.com/coderooz/game-leaderboard.git
cd game-leaderboard
```
2. Install the dependencies:
```bash
npm install express mongoose body-parser
```
3. Start MongoDB server:
```bash
mongod
```
4. Run the application:
```bash
npm start
```
5. Open your browser and navigate to `http://localhost:3000` to access the Game Leaderboard API.
## Usage
- **GET /api/players**: Retrieve the top 10 player scores.
- **POST /api/players**: Add a new player score. Example request body:
```json
{
"name": "Player1",
"score": 100
}
```
## Author
- **Ranit Saha** - [GitHub Profile](https://github.com/coderooz)
## Contributing
If you would like to contribute to this project, please fork the repository and submit a pull request.
## Code of Conduct
Please read the [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) file for details on our code of conduct.
## License
This project is licensed under the Private Use License. See the LICENSE.md file for more details.