https://github.com/motdotla/send-film-nodejs
Delivers a nightly email of a movie you can watch
https://github.com/motdotla/send-film-nodejs
Last synced: 7 months ago
JSON representation
Delivers a nightly email of a movie you can watch
- Host: GitHub
- URL: https://github.com/motdotla/send-film-nodejs
- Owner: motdotla
- Created: 2013-07-31T17:02:32.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-09-03T02:57:30.000Z (about 12 years ago)
- Last Synced: 2025-01-24T04:36:41.801Z (9 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# send-film
Delivers a nightly email with a movie you can watch.
## Usage
```bash
git clone git@github.com:scottmotte/send-film-nodejs
cd send-film-nodejs
heroku create
heroku addons:add scheduler:standard
heroku addons:add sendgrid:starter
heroku config:set TO=you@youremail.com
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
```bash
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:
```bash
node ./task.js
```