https://github.com/jpoon/leaderboard
Game Leaderboard
https://github.com/jpoon/leaderboard
Last synced: 3 months ago
JSON representation
Game Leaderboard
- Host: GitHub
- URL: https://github.com/jpoon/leaderboard
- Owner: jpoon
- Created: 2016-08-01T22:58:14.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-01T19:12:53.000Z (almost 9 years ago)
- Last Synced: 2025-01-26T05:23:10.316Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 146 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Leaderboard [](https://azuredeploy.net/)
[Sails.js](http://sailsjs.org/) powered leaderboard currently configured to use [SQL Server](https://github.com/jpoon/leaderboard/blob/master/config/connections.js) as the backing data store.
## Getting Started
* `npm install`
* `npm install -g nodemon`
* `bower install`
* `nodemon app.js` or `nodemon app.js --prod`## API
* `GET /` - Top 5 Highest Scores
* `GET /` - Retrieves details about a game id
* `POST /create?username=&score=` - Saves a new gamescore for a userThe above APIs will return the following response object:
```
{
username: ,
score: ,
id: ,
createdAt: ,
rank:
}
```