Skip to content

proyecto26/MyAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Oct 27, 2024
7812be7 · Oct 27, 2024

History

55 Commits
Jun 29, 2020
Jul 9, 2021
Aug 9, 2021
Aug 8, 2021
Jun 29, 2020
Jun 29, 2020
Jun 29, 2020
Jun 29, 2020
Jun 27, 2020
Jul 9, 2021
Oct 27, 2024
Jun 29, 2020
Jul 9, 2021
Jun 29, 2020
Jun 29, 2020
Jun 29, 2020

Repository files navigation

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 👍

Supporting 🍻

I believe in Unicorns 🦄 Support me, if you do too.

Donate Ethereum, ADA, BNB, SHIBA, USDT/USDC, DOGE, etc:

Wallet address: jdnichollsc.eth

Please let us know your contributions! 🙏

Happy coding 💯

Made with ❤️