README.md

March 22, 2026 ยท View on GitHub

Nest Logo

MyApi SQL Template
โšก๏ธLaunch your api instantly watching changes with live-reload
๐Ÿ“ˆHighly scalable using Repository design pattern to access the database even easier
๐Ÿ˜ŽOpenAPI with Swagger to describe your RESTful APIs
โœจKISS principle make everything as simple as possible, but not simpler
๐Ÿ“ฑMobile friendly supporting Cross-origin resource sharing (CORS) with a list of domains for restricted resources
๐Ÿ”‘Security using JWT authentication strategy with Passport and other techniques to increase the security of your applications
๐Ÿ‘ฅMade for Users. Easily validate permissions for specific routes using Guards with a Role-based access control
โฑDon't repeat yourself, Single responsibility principle.
๐Ÿ”—Validation: provides pipes available right out-of-the-box with class-validator to enforce validation rules for all incoming client payloads
โš ๏ธLogger with Winston using different levels to track exceptions easily
๐Ÿ”„Migrations using TypeORM to apply incremental updates to the database

Demo ๐ŸŽฎ

Do you want to see this template in action? Visit https://myapi-template.herokuapp.com/api yay! ๐ŸŽ‰

Options (Database Type) ๐Ÿ’ป

SQL Database NoSQL Database

Installation ๐Ÿ“š

# install dependencies
$ yarn

Running the app โ–ถ

# development
$ yarn start

# watch mode
$ yarn start:dev

# production mode
$ yarn start:prod

Running migrations โ–ถ

# run migration
$ yarn migration

# create migration
$ yarn migration:create

# revert migration
$ yarn migration:revert

Test ๐Ÿ•ต๏ธ

# unit tests
$ yarn test

# e2e tests
$ yarn test:e2e

# test coverage
$ yarn test:cov

TypeORM ๐Ÿ“–

Resources ๐Ÿ“š

Credits ๐Ÿ‘

Star History ๐ŸŒŸ

Star History Chart

Sponsors ๐Ÿ’œ

This project is free and open source. Sponsors help keep it maintained and growing.

Become a Sponsor | Sponsorship Program

Contribution ๐Ÿค

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated โค๏ธ.

You can learn more about how you can contribute to this project in the contribution guide.

Happy coding ๐Ÿ’ฏ

Made with โค๏ธ by Proyecto 26 - Changing the world with small contributions.

One hand can accomplish great things, but many can take you into space and beyond! ๐ŸŒŒ

Together we do more, together we are more โค๏ธ