Will test express API project in TypeScript for load balancing. Used hot-reload for faster development.
- Dockerized
- TypeScript (v4)
- ts-node-dev
- Prettier
- ESLint with:
- Jest with DOM Testing Library
- GitHub Action workflows set up to run tests and linting on push
# install dependencies
yarn
# run in dev mode on port 3001
yarn dev
# generate production build
yarn build
# test
yarn test
# test load capability (with autocannon) on port 3001
yarn test:load
yarn test
yarn test:load
# run linter
yarn lint
# fix lint issues
yarn lint:fix