Node and Mongoose Basic Environment
- install node, yarn, and MongoDB
- yarn install
- mongod
- yarn server
- yarn test (test mode)
- yarn api (production server)
- yarn server (development mode)
- POST
/api/users
Request Body Example JSON
{
"name": "joe",
"likes": 0
}
- GET
/api/users
- GET
/api/:id
- PUT
/api/:id
- DELETE
/api/:id