8000 GitHub - maccman/oped: Email based diary
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

maccman/oped

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0