Building a simple API with Express and Bookshelf.js

added by JavaScript Kicks
12/18/2014 2:12:24 PM


As promised in the previous article, today we are going to be building a simple restful API with Bookshelf.js and Express. We need to install 2 additional modules for our application, namely, express - for routing, and body-parser - for parsing request variables


Drew Peterson
12/18/2014 7:41:26 PM
Nice article @ragingflameblog. Have you considered also setting the response code to 404 when resources are not found on a GET request, in addition to returning the error message?