Skip to content

Light node js server providing rest api for some games

License

Notifications You must be signed in to change notification settings

achorein/game-keeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

game-keeper

Light node js server providing rest api for some games

Build Status Coverage Status Inline docs

API

Endpoint Description
GET /api/score/max
GET /api/score/top
GET /api/score/level/(level)/max
GET /api/score/player/(playername)/max
PUT /api/score { "playername": "player1", "player": "skin1", "level": 1, "score": 7732 }
POST /api/score/reset { "securitycheck": "password"}

Envrionnement variable

Name Description Example
CORS Manage Cross-origin resource sharing http://game.ultimateplateform.v1kings.io
PORT Server port 7312
CONTEXTROOT URL context root /api
DATA_DIR Directory to store dabase file data/
PASSWORD Password used ti reset all score game_keeper

About

Light node js server providing rest api for some games

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published