Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 1.24 KB

File metadata and controls

45 lines (37 loc) · 1.24 KB

🏔️ Aconcagua - Node Boilerplate

Earn time with this powerful, scalable and easy to config boilerplate.

Install

npx create-aconcagua-app <projectname> 

💾 Specs

  • Node v14.x
  • MVCS pattern (Model > Route > Controller > Service)
  • Classic NodeJS Dependences: Sequelize / Express / Cors / DotENV / HTTPERRORS
  • esLint (airbnb config)
  • Windows / Unix process platform rules
  • Husky / Mocha
  • Helpers: Success, Errors & Async Handler
  • Github action to prevent "bypass errors"

↪ Routes

Route with a successful response:

{environment}/success

Route with an error:

{environment}/error

💡 If you choose Sequelize as ORM, you can follow

Generate new model example:

sequelize model:generate --name User --attributes name:string,surename:string,date:date,mail:string

Create a new db schema:

sequelize db:create

Migrate models and asociations:

sequelize db:migrate

Drop the db schema:

sequelize db:drop

🚩 Recommendations:

Change the branches on the yaml file

image

image