How rohitvegesna/prosper-finance works
This is a multi-tenant finance management web app for tracking insurance policies and investments, viewing portfolio and renewal analytics, and managing tenant users. Users enter through the web client, authenticate, and use protected pages; the server exposes API routes that operate on tenant-scoped records. The excerpts establish the route-to-storage and storage-to-database layers, but do not show the page hooks’ API calls or the internals of the large api/index.ts module, so those connections are not asserted.
Main entry points: App.tsx Client router · routes.ts Express API routes · index.ts HTTP server startup · storage.ts Tenant data access
Components 22
Web client
- Client router
client/src/App.tsx - Sign-in and registration
client/src/pages/Login.tsx - Dashboard analytics
client/src/pages/Dashboard.tsx - Policy management
client/src/pages/Policies.tsx - Investment management
client/src/pages/Investments.tsx - Access management
client/src/pages/AccessManagement.tsx - Account settings
client/src/pages/Settings.tsx - Application layout
client/src/components/Layout.tsx - Dashboard charts
client/src/components/analytics/DashboardCharts.tsx - HTTP query client
client/src/lib/queryClient.ts
API and services
- API entry module
api/index.ts - Express API routes
server/routes.ts - HTTP server startup
server/index.ts - Production client serving
server/static.ts - Development client serving
server/vite.ts
Domain and persistence
- Tenant data access
server/storage.ts - Database connection
server/db.ts - Domain data schema
shared/schema.ts - Session and user model
shared/models/auth.ts - API contracts
shared/routes.ts
Documents
- Document uploader
client/src/components/ObjectUploader.tsx
Other components
- Finance user
Connections 17
- Finance user → Client router: uses
- Client router → Sign-in and registration: routes to
client/src/App.tsx - Client router → Dashboard analytics: routes to
client/src/App.tsx - Client router → Policy management: routes to
client/src/App.tsx - Client router → Investment management: routes to
client/src/App.tsx - Client router → Access management: routes to
client/src/App.tsx - Client router → Account settings: routes to
client/src/App.tsx - Client router → HTTP query client: provides client
client/src/App.tsx - Express API routes → Tenant data access: calls
server/routes.ts - Express API routes → API contracts: uses route definitions
server/routes.ts - Tenant data access → Database connection: queries
server/storage.ts - Tenant data access → Domain data schema: uses data models
server/storage.ts - Domain data schema → Session and user model: re-exports auth
shared/schema.ts - HTTP server startup → Express API routes: registers routes
server/index.ts - HTTP server startup → Production client serving: serves production
server/index.ts - HTTP server startup → Development client serving: starts development
server/index.ts - HTTP query client → Express API routes: sends API requests