An open API service indexing awesome lists of open source software.

https://github.com/jpoon/leaderboard

Game Leaderboard
https://github.com/jpoon/leaderboard

Last synced: 3 months ago
JSON representation

Game Leaderboard

Awesome Lists containing this project

README

        

# Leaderboard [![Deploy to Azure](http://azuredeploy.net/deploybutton.svg)](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 user

The above APIs will return the following response object:

```
{
username: ,
score: ,
id: ,
createdAt: ,
rank:
}
```