Skip to content

ElaineHuang/express-mongoose-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node & Mongoose Starter

Node and Mongoose Basic Environment

  1. install node, yarn, and MongoDB
  2. yarn install
  3. mongod
  4. yarn server

Execute

  1. yarn test (test mode)
  2. yarn api (production server)
  3. yarn server (development mode)

PostMan Test

  • POST /api/users

Request Body Example JSON

{
  "name": "joe",
  "likes": 0
}
  • GET /api/users
  • GET /api/:id
  • PUT /api/:id
  • DELETE /api/:id

About

Express and Mongoose Basic environment

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published