Skip to content

Greg-GB/hapi-mongodb-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hapi API starter with MongoDB

This is a Node 4.x ES2015 Hapi API starter with MongoDB. I will add more as I go (tests, auth, types, etc) but feel free to contribute! Stay Hapi my friends.

Features

  • Hapi (with plugins)
    • Joi
    • Boom
    • Good / Good Console
    • Lab
    • Code
  • MongoDB
  • ES2015 (Promises, Classes, Let, Const, etc...)

Installation

$ npm install

Prerequisites

  • Node 4.x
  • MonogDB

Run Tests:

$ npm run test

Start the API:

$ npm start

Usage Example

$ GET http://localhost:3000/users
$ GET http://localhost:3000/users/:userId
$ POST http://localhost:3000/users
$ PUT http://localhost:3000/users/:userId
$ DELETE http://localhost:3000/users/:userId
$ GET http://localhost:3000/blogs
$ GET http://localhost:3000/blogs/:blogId
$ POST http://localhost:3000/blogs
$ PUT http://localhost:3000/blogs/:blogId
$ DELETE http://localhost:3000/blogs/:blogId

License

MIT

About

Hapi API starter with a MongoDB.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published