Python Flask-Based Movie Rating Application
├── app.py # => The heart of our app, where Flask magic happens.
├── forms.py # => Contains WTForms for adding and rating movies.
├── models.py # => Defines our movie and user entities using SQLAlchemy.
├── instance # => Holds the instanciated instant of the Movie DB
│ └── movies-project.db
├── static
│ ├── css # => Holds the css files
│ │ └── files.css
│ └── logo.png
├── templates # => Home to the html/Jinga2 templates
├── base.html
├── add.html
├── catalogue.html
├── edit.html
└── index.html
└── media # => holds different media used throughout the program and readme
└── demo.gif
Clone and install prerequisites
Assuming you already have python and pip installed on your machine
Run in your terminal, you can copy this (On Windows, use venv\Scripts\activate
instead)
sudo apt-get update # bash only
git clone https://github.com/n15r/Cinelog.git
cd Cinelog
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Set Up the API
You can get your TMDB key from their website (you need to create an account), then create a .env file in the project directory and add your TMDB API key to it.
The .env file should look like this: (friendly reminder to always encapsulate your API keys)
After decommenting the lines indicated in the app.py file, you ou can now run the project by using the commandpython3 app.py
, you should see output similar to the following:
* Running on http://127.0.0.1:5000
Press CTRL+C to quit
* Restarting with stat
* Debugger is active!
* Debugger PIN: 646-082-58
Go to your browser and input the link (or CTRL click on the link)
This project, conducted as part of the third year curriculum at the Moroccan School of Engineering Sciences
👤 Nassim Lachkar
Give a ⭐️ if this project helped you!