
Um boilerplate dockerizado para aplicações NestJS
The NestJs Application Boilerplate is a ready-to-use application template for NestJS v9.x. It provides a Dockerized environment along with pre-configured containers for NestJs, Redis, and various databases like MySQL, Postgresql, and MongoDB. The main objectives of this boilerplate are to provide a healthy start for new applications, easy maintenance, and help in learning NestJs.
To start the application, use the following script:
make up
This will bring up all the Docker containers and make the application accessible at the provided URL.
If you want to stop the application, use the following script:
make down
This will bring down all the Docker containers.
The boilerplate supports MySQL, Postgresql, and MongoDB as database options. By default, they are commented out in the docker-compose file. If you want to use any of these databases, uncomment the related code in the docker-compose file before starting up the application. After that, you will need to develop code to utilize the selected database, preferably using an ORM (Object Relational Mapper).
The NestJs Application Boilerplate is a powerful tool for developers looking to quickly start building applications using NestJS. With its Dockerized environment and pre-configured containers, it provides a streamlined experience for development and deployment. The availability of various databases and helpful scripts further enhances the productivity of developers. Overall, this boilerplate offers an excellent foundation for new applications and simplifies the process of learning and working with NestJS. Happy coding!
