How sounmirza883/website-of-agency-mirzaitsolution works
Mirza IT Solution is an agency-management platform: a public marketing and lead-capture site, admin/client/employee portals, and a role-based mobile app share one Express API and Supabase-backed data. Users authenticate, then manage role-specific work such as projects, invoices, tickets, staff operations, and chat. The graph shows the documented surfaces and major domain areas; some portal and mobile details are based on README capabilities and the file tree rather than inspected implementation excerpts.
Main entry points: index.ts API router · chat.ts Staff chat · auth.ts Login and tokens · client.ts Client operations
Components 22
Public website
- Marketing site
frontend/website/app/page.tsx - Contact inquiries
frontend/website/app/contact/page.tsx - Contact form
frontend/website/app/components.tsx
Role-based apps
- Admin portal
frontend/admin/app/page.tsx - Client portal
frontend/client/app/page.tsx - Employee portal
frontend/employee/app/page.tsx - Role-based mobile
app/src/app/index.tsx - Admin features
frontend/admin/app/hooks.ts - Client features
frontend/client/app/hooks.ts - Employee features
frontend/employee/app/hooks.ts
API and domain
- Login and tokens
backend/src/routes/auth.ts - Admin operations
backend/src/routes/admin.ts - Employee operations
backend/src/routes/employee.ts - Client operations
backend/src/routes/client.ts - Staff chat
backend/src/routes/chat.ts - Website inquiries API
backend/src/routes/website.ts - API router
backend/src/index.ts - JWT authorization
backend/src/middleware/auth.ts
Persistence and realtime
- Supabase database
backend/src/supabase.ts - Private file storage
backend/src/supabaseAdmin.ts - Chat realtime
backend/src/realtime.ts
Other components
- Site visitor
Connections 31
- Site visitor → Marketing site: browses
- Site visitor → Contact inquiries: submits inquiry
- Contact form → Website inquiries API: sends inquiry
- Marketing site → Contact form: offers contact
frontend/website/app/components.tsx - Admin portal → Login and tokens: authenticates
- Client portal → Login and tokens: authenticates
- Employee portal → Login and tokens: authenticates
- Role-based mobile → Login and tokens: authenticates
- API router → Login and tokens: mounts routes
backend/src/index.ts - API router → Website inquiries API: mounts routes
backend/src/index.ts - API router → Admin operations: mounts routes
backend/src/index.ts - API router → Employee operations: mounts routes
backend/src/index.ts - API router → Client operations: mounts routes
backend/src/index.ts - API router → Staff chat: mounts routes
backend/src/index.ts - Admin portal → Admin features: uses features
frontend/admin/app/page.tsx - Client portal → Client features: uses features
frontend/client/app/page.tsx - Employee portal → Employee features: uses features
frontend/employee/app/page.tsx - Admin operations → JWT authorization: guards requests
backend/src/routes/admin.ts - Employee operations → JWT authorization: guards requests
backend/src/routes/employee.ts - Client operations → JWT authorization: guards requests
backend/src/routes/client.ts - Login and tokens → JWT authorization: validates tokens
backend/src/routes/auth.ts - Admin operations → Supabase database: reads and writes
backend/src/routes/admin.ts - Employee operations → Supabase database: reads and writes
backend/src/routes/employee.ts - Client operations → Supabase database: reads records
backend/src/routes/client.ts - Client operations → Private file storage: signs file URLs
backend/src/routes/client.ts - Staff chat → Supabase database: reads and writes
backend/src/routes/chat.ts - Staff chat → Private file storage: handles attachments
backend/src/routes/chat.ts - Staff chat → Chat realtime: notifies activity
backend/src/routes/chat.ts - Admin features → Staff chat: uses chat API
- Employee features → Staff chat: uses chat API
- Client features → Client operations: requests client data