maccman / oped

Email based diary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Oped

Sends you an email every day, prompting you to write a diary entry. Email responses are saved in a database.

Setup

  1. Click on the Heroku Button to create your app.

Deploy

  1. Run the database migrations:
heroku run rake db:migrate -a your-app-name
  1. Configure Mailgun, by first opening up the addon SSO, then in the Mailgun interface add a new route.
heroku addons:open mailgun -a your-app-name

Mailgun

  1. Configure the Heroku scheduler to send out the daily emails.
heroku addons:open scheduler

Scheduler

  1. Lastly set some configuration variables. Set TO_EMAIL to your email address, and FROM_EMAIL to the email address Mailgun generated for you.
heroku config:set TO_EMAIL=test@example.com
heroku config:set FROM_EMAIL=oped@appid.mailgun.org

Testing

To test Oped, run rake prompt. An email should be sent to you. Any replies to this email will be saved in the posts table.

heroku run rake prompt

Export

To exports posts:

# Table Preview
heroku run rake posts:table | less

# Export to CSV
heroku run rake posts:csv > posts.csv

About

Email based diary


Languages

Language:Ruby 98.3%Language:HTML 1.7%