Skip to content

dithua/WIS-2018-node-rest-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors