Skip to content

penneryu/node-restful-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-restful-sample

app-restify

use docker deploy mongodb db server. use restify create restful webservice.

    npm install restify
    npm install mongojs
  • post

    curl -i -X POST -H "Content-Type: application/json" -d '{"title":"Penner" , "description":"https://github.com/penneryu" , "location":"Shanghai, China"}' http://127.0.0.1:8080/jobs
    
  • get

    http://127.0.0.1:8080/jobs
    http://127.0.0.1:8080/jobs/58353cd84377959505af5f15
    

app-express

use docker deploy mongodb db server. use express create restful webservice.

	 npm install express
	 npm install mongoose
	 npm install body-parser

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published