Skip to content

About

Example of a REST API using nodejs and mongo during Web Information System Lab

Resources

Stars

0 stars

Watchers

7 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WIS-2018-node-rest-example

Example of a REST API using nodejs and mongo during Web Information System Lab

clone this repo

git clone https://github.com/dithua/WIS-2018-node-rest-example 

install the dependencies

npm install

fix the MONGODB_URL in file ./db/mongoose.js

run the server

node server.js

test POST /posts with sample data

{
"title": "first title",
"body": "first body"
}

use postman and send json as raw body with JSON(application/json) selected

test GET /posts

About

Example of a REST API using nodejs and mongo during Web Information System Lab

Resources

Stars

0 stars

Watchers

7 watching

Forks

Releases

Packages

Contributors

Languages