send-film
Delivers a nightly email with a movie you can watch.
Usage
heroku createheroku addons:add scheduler:standardheroku addons:add sendgrid:starterheroku config:set TO=you@youremail.comgit push heroku master
Lastly, setup a recurring task each morning to send you the email. Use heroku scheduler for this. Add the job to look like this:
Task | Dyno Size | Frequency |
---|---|---|
node ./task.js | 1x | Daily |
Dev Setup
touch .env
Place the following in your .env file:
SENDGRID_USERNAME=sendgrid_username
SENDGRID_PASSWORD=sendgrid_password
TO=your@email.com
Now you can run:
node ./task.js