Build a RESTful API using hapijs and mongoose
3 min readDec 8, 2016
This article is about building RESTful API using hapijs and mongoose.
The API will handle CRUD for an object[Wolf], Using the HTTP verbs — GET, PUT, POST and DELETE
Okay, Let’s start
Make sure you’ve node installed in your machine and yarn as a global package
Create a project directory name “/hapijs-mongoose-restapi” and run the command and fill the required details.
yarn init
Specify the main file as app.js