- Install NodeJS 22
- Install
npm install - Configure mysql connection config file
- Run the app
npm run start
Swagger docs can be found at:
Code linters: eslint with pluggable Prettier configs.
- run:
npm run lint - fix JS errors:
lint:fixEslint configuration file: here
We use Jest for unit tests. Test file for .js should be named as .test.js and be placed along with code file.
- run unit tests:
npm run test - run tests with coverage:
npm run test:cover
Refer to this document for more details.