How duongnthe180971/movietheater works
This is a full-stack cinema booking and theater-management system: React pages route customer and admin actions through API clients to a Spring Boot REST backend. The customer journey spans movie discovery, showtime and seat selection, invoice creation, and VNPay payment; administrators manage movies, rooms, schedules, seats, promotions, accounts, and permissions. The backend persists domain data in MySQL and supports JWT authentication and email OTP. Some subsystem links are documented only in the README; those are shown without claiming uninspected call details.
Main entry points: api API clients · InvoiceService.java Invoice processing · routes.jsx Route dispatch · ShowDateService.java Show dates
Components 21
Web experience
- Route dispatch
Frontend/fe-movie-theater/src/routes.jsx - Customer pages
Frontend/fe-movie-theater/src/pages/client - Admin pages
Frontend/fe-movie-theater/src/pages/admin - API clients
Frontend/fe-movie-theater/src/api
Catalog and scheduling
- Movie catalog
Backend/be-movie-theater/src/main/java/com/group3/be/movie/theater/domain/movie - Rooms and seats
Backend/be-movie-theater/src/main/java/com/group3/be/movie/theater/domain/seat - Show dates
Backend/be-movie-theater/src/main/java/com/group3/be/movie/theater/domain/show_dates/ShowDateService.java - Schedules
Backend/be-movie-theater/src/main/java/com/group3/be/movie/theater/domain/schedule/ScheduleService.java
Booking and payment
- Ticket and invoice UI
Frontend/fe-movie-theater/src/pages/client/ticket/Payment.jsx - Invoice processing
Backend/be-movie-theater/src/main/java/com/group3/be/movie/theater/domain/invoice/InvoiceService.java - Schedule seat state
Backend/be-movie-theater/src/main/java/com/group3/be/movie/theater/domain/schedule_seat - VNPay integration
Backend/be-movie-theater/src/main/java/com/group3/be/movie/theater/domain/vnpay
Identity and administration
- Accounts and OTP
Backend/be-movie-theater/src/main/java/com/group3/be/movie/theater/domain/account/AccountService.java - Roles and permissions
Backend/be-movie-theater/src/main/java/com/group3/be/movie/theater/domain/role/RoleService.java - Promotions
Backend/be-movie-theater/src/main/java/com/group3/be/movie/theater/domain/promotion - Image files
Backend/be-movie-theater/src/main/java/com/group3/be/movie/theater/util/file/FileService.java
Other components
- Customer
- Administrator
- MySQL database
- VNPay gateway
- Email service
Connections 29
- Customer → Route dispatch: browses
Frontend/fe-movie-theater/src/routes.jsx - Administrator → Route dispatch: manages
Frontend/fe-movie-theater/src/routes.jsx - Route dispatch → Customer pages: routes to
Frontend/fe-movie-theater/src/routes.jsx - Route dispatch → Admin pages: routes to
Frontend/fe-movie-theater/src/routes.jsx - Customer pages → API clients: requests data
- Admin pages → API clients: requests data
- API clients → Movie catalog: calls REST API
README.md - API clients → Show dates: calls REST API
README.md - API clients → Schedules: calls REST API
README.md - API clients → Rooms and seats: calls REST API
README.md - Ticket and invoice UI → API clients: starts payment
- API clients → Invoice processing: submits booking
README.md - Invoice processing → Accounts and OTP: loads account
Backend/be-movie-theater/src/main/java/com/group3/be/movie/theater/domain/invoice/InvoiceService.java - Invoice processing → Schedule seat state: updates seat state
Backend/be-movie-theater/src/main/java/com/group3/be/movie/theater/domain/invoice/InvoiceService.java - Invoice processing → VNPay integration: processes payment
README.md - VNPay integration → VNPay gateway: redirects payment
README.md - Schedules → Show dates: loads show dates
Backend/be-movie-theater/src/main/java/com/group3/be/movie/theater/domain/schedule/ScheduleService.java - Show dates → Schedules: creates schedules
Backend/be-movie-theater/src/main/java/com/group3/be/movie/theater/domain/show_dates/ShowDateService.java - Accounts and OTP → Email service: sends OTP
README.md - Accounts and OTP → Roles and permissions: assigns role
Backend/be-movie-theater/src/main/java/com/group3/be/movie/theater/domain/account/AccountService.java - Roles and permissions → MySQL database: persists roles
README.md - Movie catalog → MySQL database: persists catalog
README.md - Rooms and seats → MySQL database: persists layout
README.md - Show dates → MySQL database: persists dates
README.md - Schedules → MySQL database: persists schedules
README.md - Invoice processing → MySQL database: persists invoices
README.md - Schedule seat state → MySQL database: persists seat state
README.md - Promotions → MySQL database: persists promotions
README.md - Image files → Customer pages: serves images
README.md