/hapijs-mongoose-restapi

a RESTful API using hapijs and mongoose

Primary LanguageJavaScript

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

bitHound Dependencies Known Vulnerabilities Build Status CircleCI XO code style Coverage Status

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