Checks for your TOA in the Brazilian Scientific Mobility Program website.
This is a guide to deploying this app on Heroku.
Clone or download and extract this project.
Open a terminal (or command prompt) and navigate to the project folder.
heroku login and login to your Heroku account.
heroku create NAME to create a new Heroku app using this project. NAME can be whatever you want (as long as it's available).
Add the Mongolab addon to your app:
heroku addons:add mongolab. This is your database.
Add the Heroku Scheduler addon to your app:
heroku addons:add scheduler. This is your job scheduler.
Add the SendGrid addon to your app:
heroku addons:add sendgrid. This is your email sender.
heroku config:set KEY=VALUE to set the following configurations:
URL: the URL the app will run on. Usually, http://NAME.herokuapp.com/. Please include the trailing '/'.
MAIL_ACCOUNT: the email address account that will SEND emails to subscribers (example: email@example.com). It can be any email address, really.
For example, you'd need to run
heroku config:set MAIL_ACCOUNTfirstname.lastname@example.org, etc.
heroku addons:open scheduler, which will take you to your browser on the Scheduler dashboard. There, you need to add 6 jobs like this:
git push heroku master to deploy the app!
Open your app with
heroku open to see if it worked. If something went wrong, you can use
heroku logs to debug it.