Launch mongo service using
docker-compose up
In Another terminal
npm i
npm start
route /car
model Car { name: String model: String year String }
available methods * post / * get / * put /:id * delete /:id
Launch mongo service using
docker-compose up
Start node app using, in another terminal.
npm i
npm start
resource route:
/car
resource model:
{
name: String
model: String
year: Number
}
resource methods:
-
post /
-
get /
-
put /:id
-
delete /:id