Git Product home page Git Product logo

imgubox's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.