Database : Sequelize + Umzug (or Mongoose)
Backend : NodeJS, ExpressJS, Pug
Frontend : Webpack 4, VueJS 2, VueX, SCSS, gridlex
- Run
npm install && npm run prod
- Copy
/config/default-sample.js
to/config/default.js
and check settings
- Make sure you have Postgres, MySQL or SQLite installed
- Run
npm run init-sequelize
- Open
/config/base.js
and setdatabase_object_modeling: 'sequelize'
- Make sure you have MongoDB installed
- Run
npm run init-mongoose
- Open
/config/base.js
and setdatabase_object_modeling: 'mongoose'
npm start
(orpm2 start pm2.config.js
)
npm run dev
will compile frontend assets in realtimenpm run prod
will compile frontend assets for production
npm run migrate:up
apply all pending migrationsnpm run migrate:down
undo last migrations batch appliednpm run migrate:new sample
creating a new migration named "sample"
Some projects using this boilerplate in production environment :