https://github.com/maxpleaner/leaderboard
api & front end written in meteor & coffeescript
https://github.com/maxpleaner/leaderboard
Last synced: 12 months ago
JSON representation
api & front end written in meteor & coffeescript
- Host: GitHub
- URL: https://github.com/maxpleaner/leaderboard
- Owner: MaxPleaner
- Created: 2017-07-25T19:27:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-28T21:42:43.000Z (almost 9 years ago)
- Last Synced: 2025-03-24T06:33:41.243Z (about 1 year ago)
- Language: CoffeeScript
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a meteor application written with coffeescript.
### Run the server
1. clone this repo
2. install dependencies (`npm install`)
3. start meteor (`meteor`)
### Use the website
1. visit http://localhost:3000
2. create an account
3. see a list of game scores
### Use the API
1. create a user using POST /users/register with params `username`,
`password`, and `email`. The response will have keys `token`, `tokenExpires`,
and `id` (user id). There is also a POST /users/login route with the same
request/response format.
2. get a listing of scores using GET /publications/scores
3. use GET /publications/scores/by_user/`` to get scores of a single user
4. use GET /publications/scores/by_game/`` to get scores of a single game
3. add a score listing using POST /methods/add_score with params `user_id`,
`game_name`, and `score`.