npm install
or
yarn install
will install all modules (node_modules, bower_modules)
- build (production)
npm run build
- build and start listening changes (production)
npm run builder
- build (development)
npm run build-dev
- build and start listening changes (development)
npm run builder-dev
- production
KEY1=VALUE1 KEY2=VALUE2 ... pm2 start pm2.config.js
- development
KEY1=VALUE1 KEY2=VALUE2 ... pm2-dev start pm2.config.js
KEY1=VALUE1 KEY2=VALUE2 ... - this is the node.js environment variables,
that need to define for your configuration
you can use file .env in root of the project for store your environment variables
NODE_ENV-productionordevelopmentor other (development)PORT- port (80forproduction,8080fordevelopment)DB_FILENAME- path to sqlite3 database (~/.config/ico-bot/byteball.sqlite)SSL- port to database (false)SSL_KEY- filename of ssl key (ca.key)SSL_CRT- filename of ssl crt (ca.crt)