Skip to content

A dynamic cinema website and booking system, it is for both user and admin use

Notifications You must be signed in to change notification settings

Mahmoud-elnatour-1/Cinema-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

🎬 Cinema Website

Welcome to the Cinema Website project, a web application built using Flask that allows users to create accounts, book tickets, and view a list of movies. Admin users have additional capabilities to manage movies and user accounts.

📋 Table of Contents

🌟 Features

  • User Registration and Authentication:

    • Users can create and manage their own accounts.
    • Secure login and registration process.
  • Movie Listings:

    • Browse a list of movies with detailed information.
    • Search and filter movies by various criteria.
  • Ticket Booking:

    • Book tickets for available movies.
    • View booking history.
  • User Account Management:

    • Users can edit their own account details.
  • Admin Panel:

    • Admin users can add, delete, and edit movies.
    • Manage user accounts and permissions.

🛠️ Installation

Prerequisites

  • Python 3.6+
  • pip (Python package installer)
  • Virtual environment tool (optional but recommended)

Steps

  1. Clone the repository:

    git clone /~https://github.com/yourusername/cinema-website.git
    cd cinema-website
  2. Create a virtual environment:

    python -m venv venv
  3. Activate the virtual environment:

    • On Windows:
      venv\Scripts\activate
    • On macOS/Linux:
      source venv/bin/activate
  4. Install the required packages:

    pip install -r requirements.txt
  5. Set up the environment variables:

    • Create a .env file in the root directory and add the following:
      FLASK_APP=app.py
      FLASK_ENV=development
      SECRET_KEY=your_secret_key
  6. Initialize the database:

    flask db init
    flask db migrate
    flask db upgrade

🚀 Usage

  1. Run the application:

    flask run
  2. Open your web browser and go to:

    http://127.0.0.1:5000/
    

🤝 Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -m 'Add some feature').
  5. Push to the branch (git push origin feature-branch).
  6. Open a pull request.