This is a boilerplate for creating a RESTful API using hapi.js and mongoose. The code for creating the API has been explained in this Medium Post
.
├── app.js // Express App and Entry Point
├── database.js // MongoDB Connection
├── /models/ // DB Models
│ └── Wolf.js // Schema
├── /node_modules/ // Project Dependencies[pm modules]
├── package.json
├── routes.js
└── yarn.lock
yarn
npm start
GET
POST
Made with ♥ by Chetan