Skip to content

adelinopds/API-HapiJs-MongoDB

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic API with Hapi and MongoDB

On this example I created a Products API, you can setup your own MongoDb databse url and try the next list of routes:

  • GET /api/products
  • POST /api/products
  • GET /api/products/{id}
  • PUT /api/products/{id}
  • DELETE /api/products/{id}

Project dependencies:

 "dependencies": {
    "global": "^4.3.2",
    "hapi": "^17.4.0",
    "inert": "^5.1.0",
    "mongoose": "^5.0.17",
    "nodemon": "^1.17.3"
  }

For more info about Hapi, visit HapiJs Site

About

Simple API with HapiJs v17 and MongDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%