Skip to content

Latest commit

 

History

History
57 lines (43 loc) · 971 Bytes

README.md

File metadata and controls

57 lines (43 loc) · 971 Bytes

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