Awesome
Share your moments, over dropbox.
Heroku + Dropbox + your pictures = :heart:
Requirements
- A dropbox account
- Nice pictures to show
Setup
Dropbox
- Create a new dropbox app
- Get the token
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 withhttp://[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