<commit_before># Dabble Me
### The open-source replacement for OhLife

Dabble Me helps people remember what's happened in their life. Use it as a light-weight journal on a daily, weekly, or even monthly basis...it's up to you! Dabble Me will email you on a time & days you choose - you simply reply to the email to post entries. The app is live at [https://dabble.me](https://dabble.me).

This app utilizes the following 3rd party services:

* [SendGrid](http://sendgrid.com) for Sending & Receiving Email (free for 200 emails per day)
* [Filepicker](http://filepicker.io) for Photo Uploads & Storage (free for 500 uploads per month)
* [MailChimp](http://mailchimp.com) for sending updates to all users (free for 2000 subscribers)
* [Google Analytics](http://google.com/analytics) for traffic stats (free for standard analytics)
* [Skylight](http://skylight.io) for server monitoring (free for basic monitoring)
* [Downloader.io](http://downloader.io) for zipping up photos to download (not currently available to the public)

I recommend forking and setting up a free server at [Ninefold](https://ninefold.com/). You can generate a free SSL certificate at [StartSSL](https://www.startssl.com/).

You will need to setup SendGrid to receive incoming emails and point them to your app to parse. Visit this [Settings Page](https://sendgrid.com/developer/reply); add your hostname of ```post.yourdomain.com``` and point the URL to ```https://yourdomain.com/email_processor```. I have spam check turned off, since that hasn't been an issue yet.

Your local environment variables at ```config/local_env.yml``` will need to be something like this:

```
MAIN_DOMAIN: yourdomain.com
SECRET_KEY_BASE: 1234..1234
DEVISE_SECRET_KEY: 1234..1234
SMTP_DOMAIN: post.yourdomain.com
SENDGRID_USERNAME: your_sendgrid_username
SENDGRID_PASSWORD: your_sendgrid_password
MAILCHIMP_API_KEY: <KEY>
MAILCHIMP_LIST_ID: 9982...112
FILEPICKER_API_KEY: A....z
FILEPICKER_CDN_HOST: https://123abc.cloudfront.net
ADMIN_EMAILS: <EMAIL>,<EMAIL>
DOWNLOADER_ID: 1234..1234
DOWNLOADER_SECRET: 1234..1234
DOWNLOADER_URL: us.downloader.io
```

Your environment variables on Ninefold will need to be something like this:

```
MAIN_DOMAIN=yourdomain.com
SMTP_DOMAIN=post.yourdomain.me
RAILS_ENV=production<commit_msg>Add MX Record instructions to README.<commit_after># Dabble Me
### The open-source replacement for OhLife

Dabble Me helps people remember what's happened in their life. Use it as a light-weight journal on a daily, weekly, or even monthly basis...it's up to you! Dabble Me will email you on a time & days you choose - you simply reply to the email to post entries. The app is live at [https://dabble.me](https://dabble.me).

This app utilizes the following 3rd party services:

* [SendGrid](http://sendgrid.com) for Sending & Receiving Email (free for 200 emails per day)
* [Filepicker](http://filepicker.io) for Photo Uploads & Storage (free for 500 uploads per month)
* [MailChimp](http://mailchimp.com) for sending updates to all users (free for 2000 subscribers)
* [Google Analytics](http://google.com/analytics) for traffic stats (free for standard analytics)
* [Skylight](http://skylight.io) for server monitoring (free for basic monitoring)
* [Downloader.io](http://downloader.io) for zipping up photos to download (not currently available to the public)

I recommend forking and setting up a free server at [Ninefold](https://ninefold.com/). You can generate a free SSL certificate at [StartSSL](https://www.startssl.com/).

You will need to setup SendGrid to receive incoming emails and point them to your app to parse. Visit this [Settings Page](https://sendgrid.com/developer/reply); add your hostname of ```post.yourdomain.com``` and point the URL to ```https://yourdomain.com/email_processor```. I have spam check turned off, since that hasn't been an issue yet. Make sure you setup an MX record for the ```post.yourdomain.com``` subdomain to point to ```mx.sendgrid.net```.

Your local environment variables at ```config/local_env.yml``` will need to be something like this:

```
MAIN_DOMAIN: yourdomain.com
SECRET_KEY_BASE: 1234..1234
DEVISE_SECRET_KEY: 1234..1234
SMTP_DOMAIN: post.yourdomain.com
SENDGRID_USERNAME: your_sendgrid_username
SENDGRID_PASSWORD: <PASSWORD>
MAILCHIMP_API_KEY: f....3333-ek3
MAILCHIMP_LIST_ID: 9982...112
FILEPICKER_API_KEY: A....z
FILEPICKER_CDN_HOST: https://123abc.cloudfront.net
ADMIN_EMAILS: <EMAIL>,<EMAIL>
DOWNLOADER_ID: 1234..1234
DOWNLOADER_SECRET: 1234..1234
DOWNLOADER_URL: us.downloader.io
```

Your environment variables on Ninefold will need to be something like this:

```
MAIN_DOMAIN=yourdomain.com
SMTP_DOMAIN=post.yourdomain.me
RAILS_ENV=production
{'fraction_non_alphanumeric': 0.1039265898420828, 'fraction_numerical': 0.023687580025608196, 'mean_word_length': 5.150918635170604, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 14, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2511431', 'n_tokens_mistral': 1547, 'n_tokens_neox': 1430, 'n_words': 527}