npm i -g gulp
npm i -g mocha
git clone <path to this repo>
cd ./medcircle-assessment
npm i
node app.js
gulp server
npm start
gulp test
Example Output
[19:41:06] Starting 'lint'...
[19:41:06] Finished 'lint' after 186 ms
[19:41:06] Starting 'test'...
[19:41:06] Finished 'test' after 1.47 ms
/articles endpoint
✓ GET /articles returns list of articles
✓ GET /articles/<id> returns the article with id <id>
✓ POST /articles creates article with posted data
✓ DELETE /articles/<id> deletes article with id <id>
✓ PUT /articles/<id> updates article with id <id>
root endpoint
✓ responds 200 to / GET requests
✓ responds 404 to GET requests without route handlers
7 passing (356ms)
gulp
Generate html, json, and markdown documentation in ./docs
gulp doc