repository for https://wtshtf.herokuapp.com, a webapp for gamma radiation alerts
- node.js, hosted by heroku
- mongodb, hosted by mLab
- sparkpost for mailing
- animate on scroll for css animations
- clone this repo
- install node
- install nodemon using
npm install -g nodemon - run
npm install - sign up for a hosted mongodb at mLab
- sign up for a hosted mail service at sparkpost
- create run.sh
export MONGO_DB_URL=[MONGODB AS A SERVICE URL]
export SPARKPOST_TOKEN=[TOKEN FOR SENDING MAILS VIA SPARKPOST]
export HEROKU_APP_NAME=[APP NAME as seen on https://devcenter.heroku.com/articles/dyno-metadata]
export DEFAULT_EMAIL=[DEFAULT EMAIL FOR RUNTIME ERRORS]
nodemon index.js
- chmod 744 run.sh
- ./run.sh