How sanchetkuchanwar2nbnsticcomp-jpg/pearlthoughts-internship works
This is a NestJS REST backend for an appointment application. Its visible workflow covers Google-token login and doctor signup, doctor profile discovery, and authenticated doctor availability management backed by PostgreSQL; doctor signup also sends a verification email. The README mentions appointment creation and management, but the tree contains no appointment module, so that capability is not mapped as an implemented workflow. Source excerpts show the main service calls; wiring for unsampled modules is represented only where supported by the tree or documentation.
Main entry points: auth.service.ts Auth workflows · availability.service.ts Availability management · doctor.entity.ts Doctor records · app.module.ts Root module
Components 19
REST API
- Application bootstrap
src/main.ts - Root module
src/app.module.ts - Health endpoints
src/app.controller.ts
Identity
- Auth endpoints
src/auth/auth.controller.ts - Auth workflows
src/auth/auth.service.ts - User records
src/auth/user.entity.ts - JWT strategy
src/auth/jwt.strategy.ts - Access guards
src/guards
Doctors & Availability
- Doctor endpoints
src/doctor/doctor.controller.ts - Doctor queries
src/doctor/doctor.service.ts - Doctor records
src/doctor/doctor.entity.ts - Availability endpoints
src/availability/availability.controller.ts - Availability management
src/availability/availability.service.ts - Availability records
src/availability/availability.entity.ts
Persistence & Integrations
- PostgreSQL
- Verification mailer
src/auth/mail.service.ts
Other components
- API client
- Google identity
- Gmail SMTP
Connections 19
- API client → Health endpoints: requests
- API client → Auth endpoints: authenticates
- API client → Doctor endpoints: queries
- API client → Availability endpoints: manages slots
- Application bootstrap → Root module: bootstraps
- Auth endpoints → Auth workflows: delegates
- Auth workflows → Google identity: verifies token
- Auth workflows → User records: reads/writes
- Auth workflows → Doctor records: writes
- Auth workflows → JWT strategy: signs token
- Auth workflows → Verification mailer: sends verification
- Verification mailer → Gmail SMTP: sends email
- Doctor endpoints → Doctor queries: delegates
- Doctor queries → Doctor records: reads
- Availability endpoints → Availability management: delegates
- Availability management → Doctor records: reads
- Availability management → Availability records: reads/writes
- Root module → PostgreSQL: configures database
- JWT strategy → Access guards: authenticates requests