An open API service indexing awesome lists of open source software.

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

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
```