Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 436 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 436 Bytes

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