Skip to content

This is just an example with the only the purpose of demoing an rest service created using Hapi framework and Mongodb.

License

Notifications You must be signed in to change notification settings

lucadv/hapi-mongo-restful-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hapi-mongo-restful-service

This is just an example with the only the purpose of demoing an rest service created using Hapi framework and Mongodb.

The service has only one endpoint, /users, that accept the following payload structure:

{
  "users": [{
    "name": "Luca",
    "surname": "Di Vincenzo",
    "email": "[email protected]",
    "city": "Dallas",
    "state": "Texas",
    "password": "verysecure"
  }]
}

The endpoint will accept POST requests with a valid payload on the address http://localhost:8010/users

Prerequisites

You should have nodejs v0.10.32 or above installed, plus mongodb v2.6 or above.

Download dependencies

npm install

### Run the server node service

Run tests

./node_modules/.bin/lab -v make cov if you're on unix will give you coverage make spec if you're on unix will give a more descriptive test output

About

This is just an example with the only the purpose of demoing an rest service created using Hapi framework and Mongodb.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published