How digidestinedcode/20262m-prj5-cinema-ingresso-backend works
This is a NestJS cinema-ticket microservice, documented as handling ticket sales and seat allocation. The visible seat workflow is HTTP requests to seat routes, then service operations through Prisma to the database. Reservation, seat-reservation, pricing, and ticket modules are registered, but their sampled controllers/services reveal little behavior; they are retained as product capabilities without inferred processing links. Prisma-generated client and model types are grouped as an internal data-access layer. Several edges are limited to explicit module registration or imports because implementation excerpts are sparse.
Main entry points: app.module.ts Feature registration · assento.controller.ts Seat routes · prisma.service.ts Prisma connection · assento.service.ts Seat operations
Components 16
API and runtime
- Nest application
src/main.ts - Feature registration
src/app.module.ts - Health check
src/health/health.controller.ts
Seat allocation
- Seat routes
src/assento/assento.controller.ts - Seat operations
src/assento/assento.service.ts - Create seat input
src/assento/dto/create-assento.dto.ts - Update seat input
src/assento/dto/update-assento.dto.ts - Seat reservations
src/assento_reserva
Ticketing domain
- Reservations
src/reserva - Pricing
src/preco - Tickets
src/ticket
Persistence
- Prisma connection
src/prisma/prisma.service.ts - Generated Prisma client
src/prisma/prisma/client.ts - Generated model types
src/prisma/prisma
Other components
- HTTP client
- MariaDB database
Connections 15
- HTTP client → Seat routes: sends requests
src/assento/assento.controller.ts - Seat routes → Seat operations: delegates operations
src/assento/assento.controller.ts - Seat routes → Create seat input: accepts input
src/assento/assento.controller.ts - Seat routes → Update seat input: accepts input
src/assento/assento.controller.ts - Seat operations → Prisma connection: queries data
src/assento/assento.service.ts - Prisma connection → Generated Prisma client: extends client
src/prisma/prisma.service.ts - Generated Prisma client → Generated model types: uses model types
src/prisma/prisma/client.ts - Prisma connection → MariaDB database: connects to
src/prisma/prisma.service.ts - Nest application → Feature registration: loads module
src/main.ts - Feature registration → Health check: registers feature
src/app.module.ts - Feature registration → Seat routes: registers feature
src/app.module.ts - Feature registration → Seat reservations: registers feature
src/app.module.ts - Feature registration → Reservations: registers feature
src/app.module.ts - Feature registration → Pricing: registers feature
src/app.module.ts - Feature registration → Tickets: registers feature
src/app.module.ts