Rest api demo to be turned into a Yeoman generator later.
- Initial minimal app
- Adding a 404 page
- Adding nodemon to the workflow
- Adding logging
- Prettifying the log output
- Using .env
- Using helment for some added security
- Adding eslint
- nodemon workflow
- .env configs
- helmet security on an express api
- json body-parser
- swagger-jsdoc at http://localhost:3333/api/api-docs.json
- swagger-ui-express at http://localhost:3333/api/api-docs/#/
- autoload services, models, and controllers with consign
- logging with log levels using pino
- Mongo ORM with Mongoose
- mocha tests using chai should
- chai-http E2E tests
You should have node installed (you can use NVM) and Mongo installed (you can use Brew and Brew Services)
git clone git@github.com:pajtai/rest.git
cd rest
npm i
npm run dev