This test is designed to exercise different aspects of technical abilities. The aim is to provide a clear, concise and organised code.
- Create a service which displays a RESTful API with ScoreBoard and Gist endpoints;
- Method to submit a new score, see Sample Input section.
- Method to retrieve latest scoreboard, see Sample Output section.
- Method to create a Gist in github.
- Method to list all comments from a Gist.
- Check ScoreBoard.pdf for input samples and details;
- The response/request ContentType its a json.
- Gist ID its part of endpoint URL.
- Change Gist user and password in the configuration files.
npm start
and start coding- Save your files and the server will automatically reload
npm run production
npm run lint
- Import
postman_collection.json
file, with all pre-configured endpoints;
npm run test
npm run cover
- GET
/v1/score
: Get scores; - POST
/v1/score
: Save new score; - POST
/v1/score/:id/gist
: Save gist score; - GET
/v1/gist
: List gists; - GET
/v1/gist/:id/comments
: Get gist comments;