This project contains an example starting point for creating Node.js Express apps.
It includes basic testing and linting and an automated CI/CD pipeline in the form of GitHub Actions.
- Express
- Axios
- ESLint
- Jest
- Supertest
- pm2
Install the npm packages and run the app:
npm install && npm run startSend a HTTP GET request to "<base_url>/pokemon-of-the-day"
- Include a 'Version' header in the request ('1' or '2') to get the pokemon of the day
Run the linter:
npm run lintRun unit tests including a test coverage report:
npm run testst:unit:coverageInstall pm2 as a global package and then run the intagration tests:
npm install pm2 -g && npm run tests:integration:process