Skip to content

Lazhari/restful-chal

Repository files navigation

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

About

RESTful API challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages