layout | title |
---|---|
default |
Local Installation |
- MongoDB
- Node >7.4
- pm2 (production)
git clone [email protected]:restfulnews/api.git
cd api
npm i
cp .env.example .env
Replace the provided example keys with your own keys in .env
.
npm start
Note: Make sure mongodb is running.
npm test # test using Jest
npm run test:unit # run unit tests
npm run test:integration # run integration tests
npm run coverage # test and open the coverage report in the browser
npm run lint # lint using ESLint
npm run dev () # run the API in development mode
npm run prod # run the API in production mode
npm run docs # generate API docs