How scsccso/cineverse works
CineVerse is a decoupled Next.js cinema-booking frontend and Spring Boot API. Customers browse films and showtimes, choose seats under a temporary lock, create a booking, pay through Stripe Checkout, and receive a QR e-ticket; staff can redeem tickets. Admins manage the cinema catalog and schedule, support bookings, reconcile payments, and inspect/export reports. The excerpts substantiate booking, authentication, and payment internals; other feature branches and cross-application links are shown only where the README documents them.
Main entry points: api Admin API clients · BookingService.java Booking lifecycle · PaymentService.java Payment orchestration · MovieService.java Movie catalog
Components 23
Customer experience
- Next.js app
frontend/src/app - Browse and showtimes
frontend/src/app/(customer) - Seat selection
frontend/src/components/booking
Administration
- Admin console
frontend/src/app/admin - Admin API clients
frontend/src/lib/api - Sales and occupancy reports
cineverse-backend/src/main/java/com/cineverse/backend/report/service/ReportService.java
Cinema catalog
- Movie catalog
cineverse-backend/src/main/java/com/cineverse/backend/movie/service/MovieService.java - Cinema and seats
cineverse-backend/src/main/java/com/cineverse/backend/cinema/service - Showtime schedule
cineverse-backend/src/main/java/com/cineverse/backend/showtime/service - Poster storage
cineverse-backend/src/main/java/com/cineverse/backend/storage/LocalStorageService.java - TMDB metadata
Booking and payment
- Booking lifecycle
cineverse-backend/src/main/java/com/cineverse/backend/booking/service/BookingService.java - Seat concurrency locks
cineverse-backend/src/main/java/com/cineverse/backend/booking/service/SeatLockService.java - Booking records
cineverse-backend/src/main/java/com/cineverse/backend/booking/repository/BookingRepository.java - Redis
- Payment orchestration
cineverse-backend/src/main/java/com/cineverse/backend/payment/service/PaymentService.java - Stripe Checkout
- E-ticket and redemption
cineverse-backend/src/main/java/com/cineverse/backend/ticket/service/TicketService.java
Identity and reporting
- Sign-in and profile
frontend/src/components/auth - JWT and token rotation
cineverse-backend/src/main/java/com/cineverse/backend/auth/service/AuthService.java - User administration
cineverse-backend/src/main/java/com/cineverse/backend/user/service
Other components
- Customer
- Admin staff
Connections 27
- Customer → Next.js app: uses
README.md - Next.js app → Browse and showtimes: renders
README.md - Browse and showtimes → Movie catalog: browses
README.md - Browse and showtimes → Showtime schedule: selects
README.md - Customer → Seat selection: chooses seats
README.md - Seat selection → Booking lifecycle: requests booking
README.md - Booking lifecycle → Seat concurrency locks: locks seats
README.md - Seat concurrency locks → Redis: acquires locks
README.md - Booking lifecycle → Booking records: persists
cineverse-backend/src/main/java/com/cineverse/backend/booking/service/BookingService.java - Booking lifecycle → Payment orchestration: starts checkout
README.md - Payment orchestration → Stripe Checkout: creates session
cineverse-backend/src/main/java/com/cineverse/backend/payment/service/PaymentService.java - Stripe Checkout → Payment orchestration: sends webhook
README.md - Payment orchestration → E-ticket and redemption: issues on success
README.md - Admin staff → Admin console: uses
README.md - Admin console → Admin API clients: calls
README.md - Admin API clients → Movie catalog: manages
README.md - Admin API clients → Cinema and seats: manages
README.md - Admin API clients → Showtime schedule: schedules
README.md - Admin API clients → Booking lifecycle: searches orders
README.md - Admin API clients → Sales and occupancy reports: requests reports
README.md - Admin API clients → E-ticket and redemption: redeems tickets
README.md - Admin API clients → User administration: manages users
README.md - Admin API clients → Payment orchestration: reviews exceptions
README.md - Sign-in and profile → JWT and token rotation: authenticates
README.md - JWT and token rotation → User administration: issues user identity
cineverse-backend/src/main/java/com/cineverse/backend/auth/service/AuthService.java - Movie catalog → TMDB metadata: imports metadata
README.md - Movie catalog → Poster storage: stores artwork
README.md