A movie/tv-show web app.
Made with Flask, HTML and CSS.
If you want to work on the code yourself:
- 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!
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,
- Set up Postgres locally if you haven't
- 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>"
- Set an
UPDATE_VERIFICATION_CODE
environment variable indata_storage.py
to a particular value.
os.environ["UPDATE_VERIFICATION_CODE"] = "<my_secret_code>"
- Run the app
- Send a POST request to
localhost:5000/update-db/
with the request body:{ "auth_code": "<my_secret_code>" }
- The DB should be updated!