Skip to content

hrishix6/express-typescript-docker-starter

Repository files navigation

Express - TypeScript - Docker - Starter

Boilerplate for typical express backend application with typescript and standard code quality tooling configured.

Configuration

Scripts

# runn in dev mode
$ yarn run start:dev

# run tests
$ yarn test

# generate code coverage
$ yarn run test-cov

# format code
$ yarn run format

# lint code
$ yarn run lint

# check if code is formatted correctly
$ yarn run check-formatting

# run in production
$ yarn run start:prod

Docker support

  • Dockefile for production image.
  • Dockerfile.dev for development.
# starts app in debug+watch mode make changes and save to auto reload
$ docker compose up
  • .vscode/launch.json has debug config to attach to running docker container for debugging using vscode.

Notes

  • name test files with '.spec.ts' suffix to exclude them in production build.

License

MIT