How tannguyen17112003/tsa-backend works
This is a NestJS backend whose README is only the framework starter template; the source tree reveals the product domains. The visible request pattern is authenticated clients calling API controllers, which delegate to domain services. The implementation excerpt also shows registration and sign-in relying on persistence and selected email, Firebase, and notification services. Many domain services and application wiring were not sampled, so their internal dependencies are omitted rather than inferred.
Main entry points: auth.service.impl.ts Authentication logic · auth.controller.ts Authentication API · notifications.service.impl.ts Notifications · users.service.impl.ts User management
Components 18
Identity & users
- Authentication API
src/auth/auth.controller.ts - Authentication logic
src/auth/auth.service.impl.ts - User management
src/users/users.service.impl.ts
Orders & delivery
- Order management
src/orders/orders.service.impl.ts - Delivery management
src/deliveries/deliveries.service.impl.ts - Payment processing
src/payment/payment.service.impl.ts - Live geolocation
src/geolocation/geolocation.gateway.ts
Campus operations
- Dorm regulations
src/regulation/regulation.service.impl.ts - Support tickets
src/tickets/tickets.service.impl.ts - Reports
src/reports/reports.service.impl.ts - Recognition
src/recognition/recognition.service.impl.ts
Platform services
- Notifications
src/notifications/notifications.service.impl.ts - Email delivery
src/email/email.service.impl.ts - Firebase integration
src/firebase/firebase.service.impl.ts - Media uploads
src/cloudinary/cloudinary.service.impl.ts - Python API integration
src/python-api/python-api.service.impl.ts - Application database
src/prisma/prisma.service.ts
Other components
- API client
Connections 17
- API client → Authentication API: requests
src/auth/auth.controller.ts - Authentication API → Authentication logic: delegates to
src/auth/auth.controller.ts - API client → User management: manages account
- API client → Order management: places and tracks
- API client → Delivery management: manages delivery
- API client → Payment processing: submits payment
- API client → Dorm regulations: manages rules
- API client → Support tickets: opens tickets
- API client → Reports: manages reports
- API client → Recognition: uses recognition
- API client → Live geolocation: shares location
- API client → Notifications: manages notifications
- API client → Media uploads: uploads media
- Authentication logic → Application database: reads and writes
src/auth/auth.service.impl.ts - Authentication logic → Email delivery: sends verification
src/auth/auth.service.impl.ts - Authentication logic → Firebase integration: verifies identity
src/auth/auth.service.impl.ts - Authentication logic → Notifications: sends push
src/auth/auth.service.impl.ts