Skip to content

gabodmc/nodejs-boilerplate

Repository files navigation

🏔️ 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published