CineLog

<img src="https://github.com/nashunch0/CineLog/blob/main/media/OIG2.png" alt="Logo CineLog" style="width:200px;height:200px;")>

CineLog

Python Flask-Based Movie Rating Application

Python Flask SQLAlchemy WTForms SQLite Movie DB API License

Live Demo

Interface

Screenshot

Technologies Used

Programming Languages:

Application Structure/Arborescence

├── 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

Features

Movie Management

Local Run

  1. 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
    
  2. 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)

.env screenshot


  1. Run the project

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)

Features to be added

Context

This project, conducted as part of the third year curriculum at the Moroccan School of Engineering Sciences

Author

👤 Nassim Lachkar

Show your support

Give a ⭐️ if this project helped you!