This codebase uses Python3.7.X/Python3.8.X. These setup instructions are for macOS using Homebrew. Installing these dependencies should be similar for other platforms with the appropriate package managers for that platform.
-
Install python.
brew install python sudo pip3 install virtualenv
These steps are required for development.
-
Create a Python virtual environment.
virtualenv -p python3 venv
-
Activate the environment.
. venv/bin/activate
-
Install Python dependencies.
pip3 install -r dev-requirements.txt pip3 install -r requirements.txt
-
Run the flask application locally.
python3 index.py
Development Mode (Auto reloads on code changes):
export FLASK_DEBUG=development python3 index.py
-
In order for the application to work you will need a TMDb API Key which requires making an account. Once you have fetched your key you will need to export it as an environment variable as so.
export TMDB_API_KEY=key