RESTful API challenge using Express and MongoDB
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
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