Skip to content

hrishix6/express-typescript-docker-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d8f5b0e · Dec 27, 2022

History

17 Commits
Dec 12, 2022
Dec 12, 2022
Nov 29, 2022
Nov 29, 2022
Nov 29, 2022
Nov 29, 2022
Dec 12, 2022
Dec 12, 2022
Dec 27, 2022
Dec 12, 2022
Dec 12, 2022
Nov 29, 2022
Nov 29, 2022
Dec 12, 2022

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