Skip to content

🎦 Flask web application for managing movie collections

Notifications You must be signed in to change notification settings

seb0305/MoviWebApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MoviWebApp

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.

Features

  • 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.

Installation

  1. Clone the repository: git clone https://github.com/seb0305/MoviWebApp.git cd MoviWebApp
  2. Create a virtual environment and activate it: python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
  3. Install the required packages: pip install -r requirements.txt
  4. Set up your OMDb API key in config.py: OMDB_API_KEY = 'your_api_key_here'
  5. Run the application: python app.py

Usage

  • Visit http://localhost:5000 to use the app.
  • Add users and movies through the web interface.
  • Delete users and movies using the trash bin icons.

Configuration

  • Store sensitive data like API keys in config.py.
  • Add .env and config.py to .gitignore to keep your API keys secure.

Documentation

  • 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.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

About

🎦 Flask web application for managing movie collections

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published