Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 1.85 KB

README.md

File metadata and controls

45 lines (32 loc) · 1.85 KB

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