npm install express-generator -g
express -e
npm install
npm install mongodb --save
npm install mongoose --save
npm install cors --save
npm install express-session --save
npm install passport --save
npm install passport-local --save
npm install passport-local-mongoose --save
npm install dotenv --save
npm install mocha -g
npm install chai --save
npm install chai-http --save
Endpoint | HTTP | Description |
---|---|---|
api/smartphones/seed | GET | Create dummy smartphones data |
api/smartphones | GET | Get all smartphones |
api/smartphones/:name | GET | Get smartphone by name |
api/smartphones | POST | Create smartphone |
api/smartphones | DELETE | Delete all smartphones |
api/smartphones/:id | DELETE | Delete smartphones by id |
api/smartphones/:id | PUT | Update smartphones by id |
npm install bower -g
bower init
{
"directory": "lib/"
}
bower install bootstrap --save