Autocannon usage for load testing dockerized project

Will test express API project in TypeScript for load balancing. Used hot-reload for faster development.

Features

Running the app

# 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

Testing

Jest with supertest (not implemented yet)

yarn test

Load testing with autocannon

yarn test:load

Linting

# run linter
yarn lint

# fix lint issues
yarn lint:fix