A simple, production-ready Flask web application for managing movie collections. Features include user and movie creation, deletion, updating, and searching, with automatic fetching of movie details (including posters) from the OMDb API. The app includes clear error handling and a user-friendly interface for easy movie management.
- Add, view, update, and delete users.
- Add, view, update, and delete movies.
- Automatically fetch movie details (title, director, year, poster) from OMDb API.
- Delete users and movies with a trash bin icon.
- Error handling for common HTTP errors and exceptions.
- Responsive design with user-friendly UI.
- Clone the repository: git clone https://github.com/seb0305/MoviWebApp.git cd MoviWebApp
- Create a virtual environment and activate it: python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
- Install the required packages: pip install -r requirements.txt
- Set up your OMDb API key in config.py: OMDB_API_KEY = 'your_api_key_here'
- Run the application: python app.py
- Visit
http://localhost:5000to use the app. - Add users and movies through the web interface.
- Delete users and movies using the trash bin icons.
- Store sensitive data like API keys in
config.py. - Add
.envandconfig.pyto.gitignoreto keep your API keys secure.
app.py: Main Flask application with routes and error handlers.models.py: Database models for users and movies.data_manager.py: Class for managing users and movies.config.py: Configuration settings and constants.
Contributions are welcome! Please open an issue or submit a pull request.