How grafamadeus/eventhub-be works
The source implements an event-management API: users authenticate, discover and manage events, and register for events; users can also view their own events and registrations. Controllers delegate requests to domain services, which access TypeORM entities. The README is generic Nest starter documentation and does not describe these product capabilities. Some module wiring and auth internals are represented only by the source index, so the graph omits unverified links such as guard-to-strategy dispatch.
Main entry points: event.entity.ts Event record · events.controller.ts Event routes · app.module.ts App wiring · users.service.ts User service
Components 21
Application API
- Nest entry
src/main.ts - App wiring
src/app.module.ts
Identity
- Auth routes
src/auth/auth.controller.ts - Authentication
src/auth/auth.service.ts - JWT provider
- User routes
src/users/users.controller.ts - User service
src/users/users.service.ts - JWT guard
src/auth/jwt-auth.guard.ts - Current user
src/auth/current-user.decorator.ts
Events
- Event routes
src/events/events.controller.ts - Event service
src/events/events.service.ts - Ownership guard
src/common/guards/event-ownership.guard.ts - Category routes
src/categories/category.controller.ts - Category service
src/categories/category.service.ts
Registrations
- Registration routes
src/registration/registration.controller.ts - Registration service
src/registration/registration.service.ts
Domain data
- User record
src/users/entities/user.entity.ts - Event record
src/events/entities/event.entity.ts - Category record
src/categories/entities/categories.entity.ts - Registration record
src/registration/entities/registration.entity.ts
Other components
- API client
Connections 37
- API client → Auth routes: authenticates
src/auth/auth.controller.ts - API client → Event routes: requests events
src/events/events.controller.ts - API client → Category routes: requests categories
src/categories/category.controller.ts - API client → Registration routes: manages signup
src/registration/registration.controller.ts - API client → User routes: views own data
src/users/users.controller.ts - Nest entry → App wiring: starts
src/main.ts - App wiring → Auth routes: wires
src/app.module.ts - App wiring → Event routes: wires
src/app.module.ts - App wiring → Registration routes: wires
src/app.module.ts - App wiring → Category routes: wires
src/app.module.ts - Auth routes → Authentication: delegates
src/auth/auth.controller.ts - Authentication → User service: creates and looks up
src/auth/auth.service.ts - Authentication → JWT provider: signs tokens
src/auth/auth.service.ts - User routes → User service: delegates
src/users/users.controller.ts - Event routes → Event service: delegates
src/events/events.controller.ts - Event routes → JWT guard: protects writes
src/events/events.controller.ts - Event routes → Ownership guard: checks ownership
src/events/events.controller.ts - Event routes → Current user: reads identity
src/events/events.controller.ts - Category routes → Category service: delegates
src/categories/category.controller.ts - Category routes → JWT guard: protects creation
src/categories/category.controller.ts - Registration routes → Registration service: delegates
src/registration/registration.controller.ts - Registration routes → JWT guard: protects signup
src/registration/registration.controller.ts - Registration routes → Current user: reads identity
src/registration/registration.controller.ts - User routes → JWT guard: protects profile views
src/users/users.controller.ts - User routes → Current user: reads identity
src/users/users.controller.ts - Event service → Event record: queries and saves
src/events/events.service.ts - Category service → Category record: uses records
src/categories/category.service.ts - Registration service → Registration record: queries and saves
src/registration/registration.service.ts - Registration service → Event record: checks capacity
src/registration/registration.service.ts - User service → User record: queries and saves
src/users/users.service.ts - User service → Event record: queries owned events
src/users/users.service.ts - User service → Registration record: queries signups
src/users/users.service.ts - Ownership guard → Event record: checks event owner
src/common/guards/event-ownership.guard.ts - Registration record → User record: references
src/registration/entities/registration.entity.ts - Registration record → Event record: references
src/registration/entities/registration.entity.ts - Event record → Category record: references
src/events/entities/event.entity.ts - Event record → User record: references
src/events/entities/event.entity.ts