Skip to content

nicolaspeixoto/node-study-group

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Node.js Study Group

##Description Create a rest to store user information in mongodb.

You need to start mongodb first:

nohup /usr/bin/mongod --smallfiles &

Reference: http://mongodb.github.io/node-mongodb-native/2.1/tutorials/crud/

Curl commands:

curl -X POST -H "content-type: application/json" --data '{"name": "studygroup", "company": "ADP"}' localhost:3000/users/
curl -X GET localhost:3000/users/
curl -X GET localhost:3000/users/:id
curl -X PUT -H "content-type: application/json" --data '{"name": "studygroup", "company": "ADP"}' localhost:3000/users/:id
curl -X DELETE localhost:3000/users/:id

Tip: Use nodemon index.js for auto restart.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published