A Flask web application that allows users to search for movies, create watchlists, and track their watched movies using the OMDB API.
- User authentication (register/login/logout)
- Movie search using OMDB API
- Personal watchlist management
- Mark movies as watched/unwatched
- Responsive design using Bootstrap
- Python 3.8 or higher
- pip (Python package installer)
- Clone the repository:
git clone <repository-url>
cd movie-tracker
- Create a virtual environment and activate it:
python -m venv venv
# On Windows
venv\Scripts\activate
# On macOS/Linux
source venv/bin/activate
- Install required packages:
pip install -r requirements.txt
- Create a
.env
file in the root directory by duplicating the.env.example
file:
cp .env.example .env
- Fill in your OMDB API key in the
.env
file:
SECRET_KEY=YOUR_SECRET_KEY_HERE
OMDB_API_KEY=YOUR_OMDB_API_KEY_HERE
Note: You can get an OMDB API key from https://www.omdbapi.com/apikey.aspx
The application uses SQLite as its database. To initialize the database:
python initdb.py
- Make sure your virtual environment is activated
- Run the Flask application:
flask run --host=0.0.0.0 --port=5000 # or any other available port
- Open your web browser and navigate to
http://localhost:5000
movie-tracker/
├── app.py
├── routes.py
├── models.py
├── initdb.py
├── forms.py
├── requirements.txt
├── .env
├── .env.example
├── static/
│ └── style.css
│ └── script.js
└── templates/
├── base.html
├── login.html
├── profile.html
├── register.html
├── search.html
└── watchlist.html
- Fork the repository
- Create a new branch for your feature
- Commit your changes
- Push to the branch
- Create a new Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.