Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zefer/trampled
https://github.com/zefer/trampled
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/zefer/trampled
- Owner: zefer
- Created: 2012-09-27T15:20:45.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2017-07-19T07:34:48.000Z (over 7 years ago)
- Last Synced: 2024-04-13T23:29:51.251Z (7 months ago)
- Language: Ruby
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Trampled
A simple app that sends email notifications when user(s) loose or gain Twitter followers.
## Usage
Run `rake tramp:notify` as a regular cron job, e.g. hourly follower checks.
## Setup
Requires a mongodb instance, and the following environment variables:
* `USERS` A list of users to be checked, and the email address to notify when that users' followers change. E.g. `USERS=bananaman:[email protected],dude:[email protected]`
* `RACK_ENV` Used by Mongoid to determine which connection (from mongoid.yml) to use. Even though this isn't a Rack app
* `EMAIL_FROM` From field for outgoing emails, e.g. `[email protected]` or `Tramp `
* `SMTP_HOST` Emails are sent via SMTP. You could use your Gmail account, or a service like SendGrid
* `SMTP_USERNAME`
* `SMTP_PASSWORD`
* `MONGODB_URL` When `RACK_ENV=production`, otherwise, localhost is used (see mongoid.yml)## Simple deployment
This can easily be deployed to heroku, and run without cost using the Heroku Scheduler addon and a free MongoHQ instance.