Template for the Node.js applications based on the Nest.js framework for building efficient and scalable server-side applications.
The template is based on Nest.js(v9) and TypeScript. Also has an implementation for the TypeORM to work with the Database, and RabbitMQ for the messaging(the RabbitMQ implementation can be easily removed if you are not using it). The template dockerized as well
The all configurations are in the ./config
folder. The existing configs
- app.ts - Application configs, like port, host, env and so one
- database.ts - The database and TypeORM configurations
- amqp.ts - RabbitMQ configuration
- swagger.ts - Swagger configuration
- cors.ts - Cors configuration
$ yarn
$ cp .env.example .env
The command will run the all migrations from the ./migrations
folder
$ yarn migration:run
# development
$ yarn start:dev
# debug
$ yarn start:debug
# production mode
$ yarn start:prod
# unit tests
$ yarn test
# e2e tests
$ yarn test:e2e
# test coverage
$ yarn test:cov
$ docker-compose up
# OR, to run in background
$ docker-compose up -d
to manage the MariaDB will be available on http://localhost:8081/
- Author - Edgar Sargsyan
- Website - https://www.sargsyan.dev/
Nest is MIT licensed.