hapijs-mongoose-restapi
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
Directory Layout
.
├── 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
Getting Started
yarn
To start the app
npm start
Routes
GET
POST
Made with ♥ by Chetan