Heroku + Dropbox + pictures = ♥︎
Ruby HTML CSS Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
public/css
views
.gitignore
.ruby_version
Gemfile
Gemfile.lock
Procfile
README.md
app.json
config.ru
license.md
moments.rb

README.md

Share your moments, over dropbox.

Heroku + Dropbox + your pictures = ❤️

Requirements

  • A dropbox account
  • Nice pictures to show

Setup

Dropbox

Heroku

Deploy to Heroku

Use the token generated in the dropbox part in setup

Dropbox Webhook

This will clean the cache when you add new pictures or moments to your dropbox folder. You can do it manually via the settings of your app on heroku also but this is the recommended way.

  • Get FLUSH_TOKEN via $ heroku config
  • Fill the Webhook URIs field with http://[YOUR_APP].herokuapp.com/cache/flush?t=[FLUSH_TOKEN]

Usage

  • Go to [DROPBOX_FOLDER]/Apps/[THE_APP_CREATED_IN_DROPBOX]
  • Create folder for new moments you want to share.
  • Add a cover picture by naming a picture _cover and any extension you want.
  • Want password protection? Add a password.txt file. Content is the password.
  • Add pictures to the folder.
  • Enjoy!

See it in action

Setup Locally

DROPBOX_TOKEN=INSERT_TOKEN bin/setup
foreman start
open localhost:5000