https://github.com/lazhari/restful-chal
RESTful API challenge
https://github.com/lazhari/restful-chal
Last synced: 10 months ago
JSON representation
RESTful API challenge
- Host: GitHub
- URL: https://github.com/lazhari/restful-chal
- Owner: Lazhari
- Created: 2017-02-05T10:50:11.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-09T12:48:46.000Z (almost 9 years ago)
- Last Synced: 2025-01-21T21:09:25.634Z (12 months ago)
- Language: JavaScript
- Homepage:
- Size: 336 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RESTful API challenge
> RESTful API challenge using Express and MongoDB
# Start Application
[Node.js](https://nodejs.org/) is required
```bash
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](https://www.mongodb.com/) in another terminal instance.
```bash
$ mongod
```
Then, run the server in development mode.
```bash
$ npm run dev
Express server listening on http://localhost:3000, in development mode
```
## Generate Mocks data
Please execute the command in this order
```bash
npm run fakeproducts # generate fake products
npm run fakeimages # generate fake images
npm run fakecolor # generate fake color
npm run fakeitems # generate fake items
```