Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

AltStyle によって変換されたページ (->オリジナル) /