A boilerplate setup for building Node.js RESTful API using Restify
There are several ways you can use this boilerplate.
(a) Yoeman (ongoing)
OR
(b) Download the repo (link) then unzip to desired project location.
$> cd /path/to/project
$> npm install
$> gulp
// Routes
server.get('/books', booksController.index);
server.get('/books/:isbn', booksController.getBook);
server.post('/books', booksController.addBook);
server.del('/books', booksController.deleteBook);
server.put('/books/:isbn', booksController.updateBook);
(a) to run test located at /project/tests/
$> gulp test
(b) to run JsHint
$> gulp lint
MIT
- Create a tutorial on how to add routes, models and controllers
- Implement in Yoeman