- manageable and simple configuration
- easy and clean structure of controller / action
- multi-threads ready
- redis ready
- mysql ready
- Copy file
.env.dist
to.env
- Run
$ docker-compose install
- And finally, run one of these to start your app:
- run your app
.ts
files directly:$ docker-compose up dev
- run your app
.ts
files directly and nodemon will watch you file changes and reload the app$ docker-compose up dev-watch
- install dependencies and compile your app
src/*.ts
files todist/src/*.js
files.$ docker-compose run build-prod
- run compiled prod app
$ docker-compose up prod
- Access to container shell
$ docker-compose run shell
- Run tests
$ docker-compose run tests
- In production, don't forget to switch environment variable
NODE_ENV
toproduction
. This can have a big impact on performance.