https://guarded-waters-3652.herokuapp.com
Use any credentials in fixtures
groupmember/secret
groupowner/secret
# Install node and node package manager
sudo apt-get install git nodejs npmbrew install node gitTODO
# Install node utilities
# (Might have to clear npm cache if issues occur)
# To clear cache:
# npm cache clear
sudo npm install -g bower ionic grunt-cli
# Setup and clone repository
mkdir ~/git
cd ~/git
git clone https://bitbucket.org/teamevolution/schedulingapp
> Enter your username/password
# Install node project modules
cd schedulingapp
npm install
# Wait for awhile...cd ~/git/schedulingapp
# Using Grunt (to relaunch server when changes are made)
grunt server
# Using node
node server.jsIonic will auto refresh as front end files are edited
# Running ionic
cd ~/git/schedulingapp/ionic
ionic serve
# Open browser http://localhost:8100grunt simplemochaexport LOAD_FIXTURES="true"
grunt simplemocha# NOTE: Code will not run when NODE_ENV="PROD"
export LOAD_FIXTURES="true"
export CAN_DROP_TABLES="true"
node server.js# Use 4 workers
export WORKERS="4"
# Workers based on # of CPUs
export WORKERS="auto"
# Don't spawn any workers, just have one process
export WORKERS="0"
node server.js# Google cloud messaging
export PUSH_GCM_KEY="gcm_key"
# Apple push notifictions
export PUSH_APN_CERT="apn_certficiate"
export PUSH_APN_KEY="apn_key"
# Windows notification service
export PUSH_WNS_ID="wns_app_id"
export PUSH_WNS_SECRET="wns_secret"# configure with username/password
export GMAIL_USER="[email protected]"
export GMAIL_PASS="using_passwords_instead_of_oauth"
# or with OAuth
export GMAIL_CLIENT_ID="your_client_id"
export GMAIL_REFRESH_TOKEN="your_refresh_token"
export GMAIL_ACCESS_TOKEN="your_access_token"
# specify the url of the webserver (for sending links in emails)
export WEB_URL="https://www.proxyshift.com"
# configure RabbitMQ
export CLOUDAMQP_URL="url_to_rabbitmq_server"
# spawn 4 workers per worker that gets ran
export RABBIT_WORKERS="4"
# Interval between sending password reset emails (in seconds)
export EMAIL_INTERVAL_RESET="12341234"# Slack webhook
export SLACK_WEBHOOK="https://slack........"# How long a token will last for (in seconds)
# (default 2 weeks)
export TOKENS_EXPIRE_IN_X_SECONDS="12341234"
# How old does a token have to be before using it causes the expiration to reset
# (default 1 week)
export TOKENS_REFRESH_AFTER_X_SECONDS="12341234"
# Prune expired tokens from the database every minute (defaults to hourly)
# and send push notifications if a token is pruned and it has a device attached to it
export PERIODICALLY_CLEANUP_EVERY_X_SECONDS="60"