How tasnimurrahmanshakir/egpservice works
This monorepo combines a public procurement-services portal with an admin application for tender and client operations, backed by shared API and schema packages. The principal admin workflow is an operator using a dashboard view, which calls shared API services to retrieve or mutate procurement records; client creation also passes through a server action. The public workflow is browsing localized pages and tender information, then opening a consultation form. Relationships for unsampled admin routes and features are limited to documented references; the README’s simulator claims are not confirmed by the supplied tree or excerpts.
Main entry points: app Portal pages · client.ts API services · LanguageContext.tsx Language state · sections Landing sections
Components 21
Public portal
- Portal pages
apps/web/app - Landing sections
apps/web/components/sections - Navigation
apps/web/components/Navbar.tsx - Footer links
apps/web/components/Footer.tsx - Consultation form
apps/web/components/LeadModal.tsx - Tender listings
apps/web/data/winningTenders.ts - Language state
apps/web/context/LanguageContext.tsx - Translations
apps/web/data/translations.ts - Viewport observer
apps/web/hooks/useInView.ts
Admin operations
- Dashboard views
apps/admin/app/(dashboard) - Client actions
apps/admin/app/actions/clientActions.ts - Client dialogs
apps/admin/components/clients/ClientModals.tsx - Client ledger
apps/admin/components/clients/ClientLedgerModal.tsx - PDF endpoints
apps/admin/app/api
Shared services
- API services
packages/api-client/src/client.ts - API types
packages/api-client/src/types.ts - Domain schemas
packages/schema/src
Shared UI
- UI components
packages/ui/src
Other components
- Visitor
- Admin operator
- Procurement backend
Connections 23
- Visitor → Portal pages: browses
apps/web/app/page.tsx - Portal pages → Landing sections: renders
apps/web/app/page.tsx - Portal pages → Navigation: renders
apps/web/app/page.tsx - Portal pages → Consultation form: opens
apps/web/app/page.tsx - Portal pages → Tender listings: reads
apps/web/app/winning-tenders/page.tsx - Portal pages → Footer links: renders
apps/web/app/page.tsx - Landing sections → Language state: reads
apps/web/components/sections/ClientsSection.tsx - Landing sections → Viewport observer: observes
apps/web/components/sections/ClientsSection.tsx - Navigation → Language state: reads
apps/web/components/Navbar.tsx - Footer links → Language state: reads
apps/web/components/Footer.tsx - Consultation form → Language state: reads
apps/web/components/LeadModal.tsx - Language state → Translations: loads
apps/web/context/LanguageContext.tsx - Admin operator → Dashboard views: uses
apps/admin/app/(dashboard)/clients/ClientsClientView.tsx - Dashboard views → API services: requests data
apps/admin/app/(dashboard)/clients/ClientsClientView.tsx - Dashboard views → UI components: uses
apps/admin/app/(dashboard)/clients/ClientsClientView.tsx - Client dialogs → Client actions: submits
apps/admin/components/clients/ClientModals.tsx - Client actions → API services: calls
apps/admin/app/actions/clientActions.ts - Client actions → Domain schemas: validates with
apps/admin/app/actions/clientActions.ts - Client ledger → API services: requests data
apps/admin/components/clients/ClientLedgerModal.tsx - PDF endpoints → Procurement backend: fetches PDFs
apps/admin/app/api/invoices/[id]/pdf/route.ts - API services → API types: uses types
packages/api-client/src/client.ts - API services → Domain schemas: uses schemas
packages/api-client/src/client.ts - API services → Procurement backend: sends requests
packages/api-client/src/client.ts