Server-based app designed to the specifications defined in PROBLEM.md.
- Run
npm install - You will need node and npm installed. Tested using node version v10.19.0 and npm version 6.14.4.
- Run
node src/server.jsin the root of the project. Then see testing below.
-
By default, the server runs on port 3000, but you can change this in config/default.json (or conifg/test.json in the case of running unit tests)
-
Access the endpoints using either your web browser (Chrome/Firefox/etc) or use
curl:$ curl http://localhost:3000/students $ curl http://localhost:3000/students/Nicola92 $ curl http://localhost:3000/exams $ curl http://localhost:3000/exams/3713
- Run
npm run testin the root of the project to run mocha unit tests.
- Get Students List :
GET /students - Get Student Scores :
GET /students/:id - Get Exams List :
GET /exams - Get Exam Scores :
GET /exams/:number