/app-builder

Primary LanguageJavaScript

Install project

  1. Create config
cp etc/config.json.sample etc/config.json
cp etc/dbConfig.json.sample etc/dbConfig.json
  1. Install libraries
npm i

Run project (dev)

  1. Run server
nodemon app.js
  1. Run worker
node workers/builder.js

Run project (prod)

  1. Run pm2 app
npm run start

Migrations

  • Create migration file
npm run create-migration
  • Run all migrations
npm run migration
  • Undo all migrations
npm run undo-all-migrations
  • Undo one migration
npm run undo-migration

Scripts

  • Add build task
bash bin/build.sh