How aizen2510/sd_cuoiki works
MeoCinema is a cinema discovery and ticket-booking web application with a React/TypeScript frontend and FastAPI backend. The user journey runs from choosing a city, movie, theater, and showtime through seat/combo selection and checkout, ending in an electronic ticket that can be looked up later. The frontend also presents promotions, FAQs, movie details, search, and theme controls. Backend APIs serve catalog and schedule data and handle bookings, while a hybrid PostgreSQL/in-memory repository supports persistence and fallback. Some links reflect README documentation because the relevant implementation excerpts are partial.
Main entry points: App.tsx Web application · main.py FastAPI application · database.py Hybrid repository · api.ts API client
Components 25
Cinema frontend
- Web application
FE/src/App.tsx - Navigation
FE/src/components/Header.tsx - Cinema introduction
FE/src/components/HeroSection.tsx
Discovery and catalog
- Showtime finder
FE/src/components/ScheduleHub.tsx - Location selector
FE/src/components/LocationModal.tsx - Catalog search
FE/src/components/SearchModal.tsx - Movie details
FE/src/components/MovieDetailModal.tsx - Upcoming movies
FE/src/components/UpcomingSection.tsx - Promotions
FE/src/components/PromotionSection.tsx - Help and FAQs
FE/src/components/FaqSection.tsx - Local cinema catalog
FE/src/data/cinemaData.ts
Booking and tickets
- Seat checkout
FE/src/components/SeatBookingModal.tsx - Ticket lookup
FE/src/components/MyTicketsModal.tsx - Booking API
BE/app/routers/bookings.py
API and persistence
- API client
FE/src/services/api.ts - FastAPI application
BE/app/main.py - Movie API
BE/app/routers/movies.py - Location API
BE/app/routers/theaters.py - Showtime and seats API
BE/app/routers/showtimes.py - Combo API
BE/app/routers/combos.py - Voucher API
BE/app/routers/promotions.py - API data models
BE/app/models.py - Hybrid repository
BE/app/database.py - PostgreSQL
Other components
- Moviegoer
Connections 35
- Moviegoer → Web application: uses
README.md - Web application → Navigation: renders
FE/src/App.tsx - Web application → Cinema introduction: renders
FE/src/App.tsx - Web application → Showtime finder: renders
FE/src/App.tsx - Web application → Seat checkout: opens checkout
FE/src/App.tsx - Web application → Movie details: opens details
FE/src/App.tsx - Web application → Upcoming movies: renders
FE/src/App.tsx - Web application → Promotions: renders
FE/src/App.tsx - Web application → Help and FAQs: renders
FE/src/App.tsx - Web application → Location selector: opens selector
FE/src/App.tsx - Navigation → Catalog search: opens search
- Showtime finder → Local cinema catalog: uses catalog
FE/src/components/ScheduleHub.tsx - Catalog search → Local cinema catalog: searches catalog
- Seat checkout → Local cinema catalog: generates seats
FE/src/components/SeatBookingModal.tsx - Seat checkout → API client: submits booking
FE/src/services/api.ts - Ticket lookup → API client: requests ticket
FE/src/components/MyTicketsModal.tsx - Web application → API client: loads catalog
FE/src/App.tsx - API client → FastAPI application: calls REST API
README.md - FastAPI application → Movie API: registers router
BE/app/main.py - FastAPI application → Location API: registers router
BE/app/main.py - FastAPI application → Showtime and seats API: registers router
BE/app/main.py - FastAPI application → Combo API: registers router
BE/app/main.py - FastAPI application → Voucher API: registers router
BE/app/main.py - FastAPI application → Booking API: registers router
BE/app/main.py - Movie API → Hybrid repository: reads catalog
BE/app/routers/movies.py - Location API → Hybrid repository: reads locations
BE/app/routers/theaters.py - Showtime and seats API → Hybrid repository: reads availability
BE/app/routers/showtimes.py - Combo API → Hybrid repository: reads combos
BE/app/routers/combos.py - Voucher API → Hybrid repository: reads promotions
BE/app/routers/promotions.py - Booking API → Hybrid repository: stores bookings
BE/app/routers/bookings.py - Movie API → API data models: validates responses
BE/app/routers/movies.py - Location API → API data models: validates responses
BE/app/routers/theaters.py - Showtime and seats API → API data models: validates responses
BE/app/routers/showtimes.py - Booking API → API data models: validates tickets
BE/app/routers/bookings.py - Hybrid repository → PostgreSQL: reads and writes
README.md