Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 817 Bytes

README.md

File metadata and controls

33 lines (27 loc) · 817 Bytes

RESTful API challenge

RESTful API challenge using Express and MongoDB

Start Application

Node.js is required

npm test # test using mocha
npm run dev # run the API in development mode
npm start # run the API in production mode
npm run apidoc # generate API docs

First, you will need to install and run MongoDB in another terminal instance.

$ mongod

Then, run the server in development mode.

$ npm run dev
Express server listening on http://localhost:3000, in development mode

Generate Mocks data

Please execute the command in this order

npm run fakeproducts # generate fake products
npm run fakeimages # generate fake images
npm run fakecolor # generate fake color
npm run fakeitems # generate fake items