Flox is a self hosted Movie, Series and Animes watch list. It's build on top of Laravel and Vue.js and uses The Movie Database API.
The rating based on an 3-Point system for good
, medium
and bad
.
Try live demo and login with demo / demo
to add new stuff or change ratings.
git clone https://github.com/devfake/flox
cd flox/backend
composer install
php artisan flox:init # Enter here your database credentials
Enter your TMDb API-Key in backend/.env
. Then run:
php artisan flox:db # Running migrations and enter your admin credentials for the site
- Give
backend/storage
,public/assets
andpublic/exports
recursive write access. - Set the correct
APP_URL
inbackend/.env
. - Set your
CLIENT_URI
inbackend/.env
.
# CLIENT_URI=/flox/public
https://localhost:8888/flox/public
# CLIENT_URI=/subfolder/for/flox/public
https://mydomain.com/subfolder/for/flox/public
# CLIENT_URI=/
https://mydomain.com
- API for Plex.
- Sync movies, shows and watched episodes from Plex to Flox.
- Episode Tracking.
- Suggestions.
- Watchlist.
- Popular Movies and Shows, Upcoming and Current Movies.
- This lists are updated daily.
- Calendar.
- A simple calendar for your episodes and movies.
- Movies and tv shows have different colors for better differentiation. You can also use the arrow keys to jump months forward or backward.
- Reminders.
To enable the sync from Plex to Flox, you first need to generate an API-Key in Flox in the settings page. Then enter the Flox API-URL to the webhooks section in Plex.
https://YOUR-FLOX-URL/api/plex?token=YOUR-TOKEN
If you start a tv show or movie in Plex, Flox will search the item via the title from TMDb and add them into the Flox database. If you rate a movie or tv show in Plex, Flox will also rate the item. Note that rating for seasons or episodes are not supported in Flox. If you rate an movie or tv show, which is not in the Flox database, Flox will also fetch them from TMDb first. If you complete an episode (passing the 90% mark), Flox will also check this episode as seen.
To import or refresh any of your entries you need to have at least one worker running.
# spawn a single worker
php artisan queue:work --daemon --tries=3
# Alternatively install it as a systemctl service:
# The script uses the current directory as Flox root path. To override
# use the first argument and set a new absolute Flox (root) path.
# A second argument takes the php path (defaults to /usr/bin)
bash ./bin/install_worker_service.sh
# bash ./bin/install_worker_service.sh $HOME/flox /custom/path/to/php/
The default queue driver is set to database
. All your jobs will be stored in the jobs
table. If you need some better performance and more reliability, consider to choose redis.
Check the documentation for more informations.
To utilize the queues to update automatically you have to set up a cron task once manually on your server.
* * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1
You can use crontab -e
to add this new Cron task.
Make sure Cron is running and you are good to go.
sudo service cron status
This Cron will call the Laravel command scheduler every minute. Then, Laravel evaluates your scheduled tasks and runs the tasks that are due.
Currently in Flox defined tasks (which you can activate in the settings):
When | Description |
---|---|
Daily | Update all Entities from TMDb |
Daily | Send a daily reminder via mail |
Weekly | Send a weekly summary via mail |
You can change the time for daily and weekly reminder in your .env
.
Also you can make a backup of all your movies and shows in the settings page. If you click the EXPORT
button, there will be an download for an json
file. This file contains all your movies and shows from your database. This backup file will also be automatically saved in your public/exports
folder.
If you import an backup, all movies and shows in your database will be deleted and replaced. Be sure to make an current backup before you import. The import will download all poster images.
To keep your entries up to date (e.g. ratings, episodes, images) you need to refresh them. In the settings there is the possibility to refresh the data manually or via a cron job (you need the queue worker for this). If you want to refresh only a single entry, there is a button on the subpage of this item.
Flox can send you a daily reminder of episodes or movies coming out today via mail. Or a weekly summary of episodes and movies coming out in the last 7 days. There are options in the settings page for this.
Make sure you tweak the DATE_FORMAT_PATTERN
config in your .env
file.
All titles are in english by default. You can change your language by setting TRANSLATION
in backend/.env
. The most commons are DE
, IT
, FR
, ES
and RU
. You can try to use your language code.
This will also affect the language of you website. See in client/resources/languages
if your language is supported. Pull requests are welcome :)
If there isn't a translation for your language, english will be used.
You can edit your admin account (username and password) in the settings page (link is in footer).
You can also set options to display release date and/or genre of your own list. Both will still display on search, trending and upcoming. If you want to hide your ratings (or show only on hover) there is also an option for this.
There is an option to enable or disable spoiler protection for episode names.
- Your import file is probably to big. In default php.ini the max upload file is 2MB. Set the number higher and try again.
- Make sure that the queue worker is active! Otherwise flox will tell you the import is running, but nothing happens!
- Run
npm install
oryarn
in your/client
folder. - Run
npm run dev
.
This project can be run in a Docker container, it exposes only port 80. It is advised to run this configuration through a reverse proxy providing SSL if the service will be exposed over the internet. Data is saved in the container at /var/www/flox/.
An example run would be
cd <PROJECT_ROOT>
docker build . -t flox:latest
docker run -p '8080:80' --volume '/<PROJECT_ROOT>/target/:/var/www/flox' --env TMDB_API_KEY=<KEY> --rm -name flox flox:latest
You can then connect to localhost:8080 to access the application and any changes you make will be saved in /<PROJECT_ROOT>/target/.
In order to create an admin user you will need to run an initial migration. This can be done by running the container once with the environment variable FLOX_DB_INIT=true, or exec'ing into the container and manually running php artisan flox:db
Supported environment variables are:
- UID - Unix user ID to run the container as
- GID - Unix group ID to run the container as
- TMDB_API_KEY - The TMDB API key to use - required for startup
- FLOX_DB_INIT (false) - Run db init at container startup
- FLOX_ADMIN_USER (admin) - The admin username for FLOX_DB_INIT
- FLOX_ADMIN_PASS (admin) - The admin password for FLOX_DB_INIT
- FLOX_DB_CONNECTION (sqlite) - The database connection to use
- FLOX_DB_NAME (/var/www/flox/backend/database/database.sqlite) - The DB Name (or path if sqlite)
- FLOX_DB_HOST - The database host
- FLOX_DB_PORT - The database port
- FLOX_DB_USER - The database user
- FLOX_DB_PASS - The database password
- FLOX_APP_URL (http://localhost) - The URL you will be hosting the app on
- FLOX_APP_ENV (local) - The laravel app env
- FLOX_APP_DEBUG (false) - Run in debug mode
- FLOX_CLIENT_URI (/) - The relative path you are hosting on
- FLOX_TIMEZONE (UTC) - The timezone Flox is running in
- FLOX_DAILY_REMINDER_TIME (10:00) - The daily reminder time
- FLOX_WEEKLY_REMINDER_TIME (20:00) - The weekly reminder time
Like this project? Want to contribute? Awesome! Feel free to open some pull requests or just open an issue.
Detailed changes for each release are documented in the release notes.
Flox is published under the MIT license. See LICENSE for more information.