Skip to content

1Gokul/MediaScout

Repository files navigation

MediaScout

A movie/tv-show web app.

Heroku Badge Codacy Badge License

Made with Flask, HTML and CSS.

If you want to work on the code yourself:

Installation

  • Clone the repo
  • Navigate to the downloaded folder
  • Open Terminal/CMD in the folder
  • Run pip install -r requirements.txt
  • Once it is finished, run python main.py
  • You're good to go!

Important

This uses a Postgres DB to get information for the "home", "movie" and "tv" pages instead of sending requests every time to the TMDB API.

To keep the DB up to date with the required info,

  1. Set up Postgres locally if you haven't
  2. Create a new database and set the address to it in data_storage.py like so-
os.environ["DATABASE_URL"] = "postgresql://postgres:<your_password>@localhost:5432/<your_db_name>"
  1. Set an UPDATE_VERIFICATION_CODE environment variable in data_storage.py to a particular value.
os.environ["UPDATE_VERIFICATION_CODE"] = "<my_secret_code>"
  1. Run the app
  2. Send a POST request to localhost:5000/update-db/ with the request body:
    {
      "auth_code": "<my_secret_code>"
    }
    
  3. The DB should be updated!