Skip to content

Latest commit

 

History

History
86 lines (56 loc) · 1.88 KB

README.md

File metadata and controls

86 lines (56 loc) · 1.88 KB

Ticket Show App

The Ticket Show App is a web application designed to showcase tickets. It consists of a backend and a frontend component. The backend handles data storage, processing, and communication, while the frontend provides a user interface to interact with the app.

Users can book show tickets, interact with show details via APIs, and manage bookings. Admin dashboard featuring revenue statistics and detailed show insights. Utilized Redis and Celery for backend management with caching for performance, ensured security through token-based authentication.

Tech stack : Vuejs, Python, Flask, Redis, Celery, Bootstrap.

Folder Structure

Backend

  • backend/
    • db_directory/
    • ticket_show_app/
      • static/
        • pdf/
      • templates/

Frontend

  • frontend/
    • ticket_show_app/
      • public/
      • src/
        • assets/
        • components/
        • router/
        • store/
        • views/

Backend Setup

  1. Create and activate a virtual environment:

    cd backend
    virtualenv env
    source env/bin/activate
    
    Install backend dependencies and run main.py
    
    pip install -r requirements.txt
    python3 main.py
  2. Start the Redis server in a new terminal window:

    redis-server
    
  3. Run Celery worker:

    celery -A main.celery worker -l info
    
  4. Run Celery beat:

    celery -A main.celery beat --max-interval 1 -l info
    
    
  5. Start MailHog for email testing (assuming you have MailHog installed):

    /home/<root>/go/bin/MailHog
     mailhog -api-bind-addr 127.0.0.1:8025 -ui-bind-addr 127.0.0.1:8025 -smtp-bind-addr 127.0.0.1:1025
    
    
    

Frontend Setup

  1. Navigate to the frontend directory:

    cd frontend/ticket_show_app
    
  2. Install frontend dependencies:

     npm install
    
  3. Run the development server

      npm run dev