This repository is the final result of the series of posts Building a REST API with Node.js listed in my blog.
Features like validation and unit testing are only implemented for some of the routes since the goal is to just provide them as an example to develop any kind of RESTful API.
The project depends on a mongodb instance that must be accessible, you can change the connection details in the
config/env/development.js
and config/env/test.js
for the testing database.
- Clone this repository
cd
into the cloned copy and runnpm install
- Run
gulp nodemon
- Try it in a console or in a browser window doing a
GET
tohttp://localhost:3000/api/api-status
To run unit tests simply run gulp mocha
.