This guide will walk you through setting up and running the Cyberflix Server application using Docker Compose or Procfile.
- Docker (if using Docker method)
- API keys from:
- TMDB (The Movie Database)
- Trakt
- JustWatch (optional)
- AniList (optional)
-
Create Environment File:
- Create a file named
.env
in the root directory - Use
.env.template
as a reference - Fill in the required API keys and configuration
- Create a file named
-
Required Environment Variables:
TMDB_API_KEY="" # Your TMDB API key TRAKT_CLIENT_ID="" # Your Trakt client ID TRAKT_CLIENT_SECRET="" # Your Trakt client secret
-
Optional Environment Variables:
ANILIST_API_KEY="" # For anime content JUSTWATCH_API_KEY="" # For streaming availability data
-
Start the Application:
docker-compose up --build
-
Access the Application:
- Open your browser and navigate to
http://localhost:8000
- The API documentation will be available at
http://localhost:8000/docs
- Open your browser and navigate to
-
Stop the Application:
docker-compose down
-
Install Dependencies:
pip install -r requirements.txt
-
Run the Application:
python main.py
- API endpoints are available at
/api/v1
- Swagger documentation is available at
/docs
- ReDoc documentation is available at
/redoc
Common issues and solutions:
-
Docker Connection Issues:
- Ensure Docker daemon is running
- Check if ports are not in use by other applications
-
API Key Issues:
- Verify API keys are correctly formatted
- Ensure API keys have necessary permissions
This software is for educational purposes only. All rights to services like TMDB, Anilist, Justwatch, and others are reserved by their respective owners. Usage of this software must comply with the terms of service of all integrated third-party services.
Contributions are welcome! Please read our contributing guidelines before submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.