Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.21 KB

SETUP.md

File metadata and controls

56 lines (37 loc) · 1.21 KB

Setup

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.

Python3 Installation

  1. Install python.

    brew install python
    sudo pip3 install virtualenv

Environment Setup

These steps are required for development.

  1. Create a Python virtual environment.

    virtualenv -p python3 venv
  2. Activate the environment.

    . venv/bin/activate
  3. Install Python dependencies.

    pip3 install -r dev-requirements.txt
    pip3 install -r requirements.txt
  4. Run the flask application locally.

    python3 index.py

    Development Mode (Auto reloads on code changes):

    export FLASK_DEBUG=development
    
    python3 index.py
  5. 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