First you needed install all dependencies...
$ npm run install
... and then run.
$ npm run dev
If you want compile to ECMAScript 5 then run ...
$ npm run build
... and run start.
$ npm start
Server is listening on port 5000
by default.
GET http://localhost:5000/api/products
POST http://localhost:5000/api/products/create
Need pass a JSON object:
{
"name": "Example name",
"description": "Example description (optional)",
"price": 100,
"imageUrl": "http://imageurl.example"
}
PUT http://localhost:5000/api/products/update/:id
Need pass a JSON object:
{
"name": "Example name",
"description": "Example description (optional)",
"price": 100,
"imageUrl": "http://imageurl.example"
}
DELETE http://localhost:5000/api/products/delete/:id