

ImguBox - Store Imgur favorites in Dropbox
source link: https://github.com/stefanzweifel/imgubox
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

ImguBox - Store Imgur favorites in Dropbox
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:
- A database Server (mysql, sqlite, …)
- A registered Imgur Application
- A registered Dropbox Application
### 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
-
74
Google Phone 16 preps redesign of Favorites tab, more hints at voicemail transcription [APK Teardown]
-
84
Google Photos first added strings referencing a “Favorites” feature last August. Several versions later, this staple feature found in most other gallery apps is still absent. However, w…
-
12
Games of 2020: Here are our Nintendo Switch favorites from this year
-
8
Owner nolanlawson commented
-
9
Dec 18, 2020 — 01:12 CST WallCreator 2.0 Adds Ability to Set Wallpapers, Save and Restore Favorites, Plus Automation Support
-
4
Weekend PC Game Deals: Freebie from space, a bundle of favorites, and moreWeekend PC Game Deals is where the hottest gaming deals from all over the internet are gathered into one place, every week, for your consumption. S...
-
5
Make a Swift Package Collection with your favorites WWDC21 has brought many cool things and there is one that will facilitate a lot the creation of new projects with depend...
-
3
Amazing Favorites 0.5 UX 增强 发表于 2021-06-13 阅读次数: 11Amazing Favorites 0.5 UX 增强,改进了多处对于 Tag 操作的用户体验。并调整了底层存储结构,更加易于管理。用户交互增强导入时...
-
10
Instagram is testing new ‘Favorites’ to bring order to your chaotic feed Surface your VIPs’ content to the top of your feed. By...
-
6
Instagram is Developing a New 'Montage' Feature to Convert Stories to Reels, New 'Favorites' Listing Published Sept. 13, 2021 By
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK