How arnabwithab/wealth-advisor works
The checked-in product is an authentication-focused web application: users sign up or log in, the browser calls authentication endpoints, and the backend issues and manages tokens and sessions. The README describes DEWA wealth-advisory capabilities as a project concept and roadmap, but the supplied tree contains no implementation for those capabilities; they are therefore not represented as runtime components. The graph follows shown source references and route calls; frontend-to-backend transport wiring is not shown in the excerpts.
Main entry points: api-client.ts API client · login.use-case.ts Auth use cases · mongo-user.repository.ts User repository · mongo-session.repository.ts Session repository
Components 18
Web client
- Web application
frontend/src/app/app.tsx - Page routing
frontend/src/app/router.tsx - Login and signup
frontend/src/app/routes/login-page.tsx - Auth forms
frontend/src/features/auth/components/login-form.tsx - Auth API hooks
frontend/src/features/auth/api/auth-api.ts - Session state
frontend/src/features/auth/session/session-store.ts - API client
frontend/src/lib/api-client.ts
Backend authentication
- Auth routes
backend/src/modules/auth/presentation/routes/auth.routes.ts - Auth use cases
backend/src/modules/auth/application/use-cases/login.use-case.ts - User domain
backend/src/modules/auth/domain/entities/user.entity.ts - Session domain
backend/src/modules/auth/domain/entities/session.entity.ts - User repository
backend/src/modules/auth/infrastructure/persistence/mongo-user.repository.ts - Session repository
backend/src/modules/auth/infrastructure/persistence/mongo-session.repository.ts
Shared validation
- Request contracts
contracts/src/auth/login.contract.ts - Validation rules
rules/src/email.rule.ts
Backend core
- HTTP error handling
backend/src/core/http/error-handler.ts
Other components
- User
- MongoDB
Connections 16
- User → Web application: uses
- Web application → Page routing: renders
frontend/src/app/app.tsx - Page routing → Login and signup: routes to
frontend/src/app/router.tsx - Login and signup → Auth forms: renders
- Auth forms → Auth API hooks: submits to
- Auth API hooks → API client: calls
frontend/src/features/auth/api/auth-api.ts - API client → Auth routes: sends HTTP
- API client → Session state: uses auth handlers
- Request contracts → Validation rules: validates with
- Auth routes → Auth use cases: dispatches to
backend/src/modules/auth/presentation/routes/auth.routes.ts - Auth use cases → User repository: uses
- Auth use cases → Session repository: uses
- User repository → MongoDB: reads and writes
- Session repository → MongoDB: reads and writes
backend/src/modules/auth/infrastructure/persistence/mongo-session.repository.ts - User repository → User domain: maps entities
backend/src/modules/auth/infrastructure/persistence/mongo-user.repository.ts - Session repository → Session domain: maps entities
backend/src/modules/auth/infrastructure/persistence/mongo-session.repository.ts