Run command 'npm install' (might require root/administrative premissions)
Run command 'npm install -g pm2'
For more informatino on pm2 visit: http://pm2.keymetrics.io/
Run command 'npm install -g nodemon'
Run command 'npm install -g gulp'
SASS requires ruby.
Installing Ruby
MAC OS: ruby is pre-installed
WINDOWS: rubyinstaller.org
Linux: apt-get install ruby (or ruby-dev, check online)
Installing SASS
1. Use following command to install sass 'gem install sass'
2. After it is installed run 'sass -v' to confirm
n_mode
Valid options - dev | test | production
NODE_ENV (only in production)
Valid options - production
This file will be used to load environment variables used inside the server
dev.env | test.env | production.env
Note: no spaces around '='
# Database - MySQL
DB_HOST=
DB_USER=
DB_PASS=
DB_NAME=
# Database - MongoDB
DB_NAME_MONGO=
DB_USER_NAME=
DB_PASSWORD=
# Twilio
TWILIO_SID=
TWILIO_TOKEN=
TWILIO_NUMBER=
# Email
EMAIL_HOST=
EMAIL_PORT=
ORDER_EMAIL_USER=
ORDER_EMAIL_PASS=
NOREPLY_EMAIL_USER=
NOREPLY_EMAIL_PASS=
# Stripe
STRIPE_TOKEN_SECRET=
STRIPE_TOKEN_PUB=
# Order Slips
ORDER_SLIPS_DIR=
# Logger
LOG_FILE_NAME=
DEBUG_LEVEL= #error | warn | info | verbose | debug | silly
LOG_FILE_PATH=
# Keys
SESSION_KEY=
# Redis
REDIS_USER=
# Mail Chimp
SIGNED_USERS_LIST=
GUEST_USERS_LIST=
ALL_USERS_LIST=
MAILCHIMP_API_KEY=
# Google Firebase
FIREBASE_ANDROID_PROJECT_ID=
#Neverbounce Email Validator
NEVERBOUNCE_SECRET_KEY=
We use gulp to automate preprocessing, and pre-run tasks
1. Run command 'gulp run'
2. Wait for gulp tasks to finish, connect to localhost:9090 for Front-end development
1. Run command 'gulp run --env production'
2. 'nodemon server.js'
1. Run command 'gulp run --env production'
2. 'pm2 start dev-startup.json'
1. Run command 'gulp run --env production'
2. 'pm2 start production-startup.json'
gulp test-backend
gulp test-frontend
gulp test-db
If running for the first time, you'll need to install selenium web-driver. This can be done by following commands:
1. npm install -g protractor
2. run 'webdriver-manager update'
This will update webdriver. This only needs to be done once (or for later updates of webdriver).
1. open new terminal/cmd window and run 'webdriver-manager start'
2. run server (localhost:8080)
3. gulp test-e2e
gulp test-views