send-film
v0.0.1
Published
Delivers a nightly email of a movie you can watch
Downloads
5
Readme
send-film
Delivers a nightly email with a movie you can watch.
Usage
heroku create
heroku addons:add scheduler:standard
heroku addons:add sendgrid:starter
heroku config:set [email protected]
git 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
[email protected]
Now you can run:
node ./task.js