This repository has been archived by the owner. It is now read-only.
[Deprecated] Store Imgur favorites in Dropbox
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bootstrap
config
database
public
resources
storage
tests
.bowerrc
.codeclimate.yml
.env.example
.gitattributes
.gitignore
.travis.yml
LICENSE
artisan
composer.json
composer.lock
gulpfile.js
package.json
phpspec.yml
phpunit.xml
readme.md
server.php

readme.md

ImguBox - Store Imgur favorites in Dropbox

Build Status Code Climate Test Coverage


This project is no longer maintained!


Found a funny cat GIF or an awesome wallpaper album? ImguBox stores those files within your Dropbox automatically.

Read more about this project on my blog.

Selfhosting

This application was built with the PHP Framework Laravel 5.2. To run imgubox on your own server you need at least PHP 5.5!

To run the application you need the following:

### Installation

git clone https://github.com/stefanzweifel/imgubox.git && cd imgubox
cp .env.example .env
composer install
php artisan key:generate

### Configuration

After you’ve installed the PHP dependencies you have to update the .env file to your needs:

  • Add Database Credentials,
  • Add Client ID, Secret Key, Redirect URL for Imgur and Dropbox

You then need to migrate and seed your database. Run the following on your server:

php artisan migrate --seed

The Application should be ready to go. Open the site in your browser of choice and create an account. You should then be able to connect with your Imgur and Dropbox Account.

Running the Application

The core of imgubox is a scheduled command which runs every 30 minutes. The command will then dispatches a job to the queue for every user with an active Imgur and Dropbox token. The Job gets the latest favorited images of the given user and dispatches another job which will then store the passed Imgur Image in Dropbox.

Add the following line to your crontab. The schedule:run runs Laravel’s internal Scheduling class. Read more about it here.

* * * * * php /home/imgubox/artisan schedule:run 1>> /dev/null 2>&1

As described above, Laravel pushed Jobs onto the queue you have configured in the beginning. The Queue can be consumed by the queue:work command. You can add the following line to your supervisord configuration. Replace $YOUR_QUEUE_CONNECTION with whatever you have configured in this file.

php /home/imgubox/artisan queue:work $YOUR_QUEUE_CONNECTION --queue=high,low --daemon  2>&1