How satha-1/ai-construction-market-place works
Conapp is a construction-estimation and vendor marketplace product. Customers create projects, upload documents, generate and verify a bill of quantities (BOQ), then source materials through vendor matching and RFQs; vendors publish catalogs and submit quotations. The React app presents public marketplace, customer, vendor, and admin workspaces over a FastAPI modular monolith. The graph includes the documented feature branches and storage/integration layers; links to unsampled subsystems use README evidence or are omitted where wiring is not shown.
Main entry points: App.tsx Role-based workspaces · session.py PostgreSQL and pgvector · pipeline.py Document processing · boq BOQ calculation
Components 21
Web application
- Role-based workspaces
frontend/src/App.tsx - API client
frontend/src/api/index.ts
Identity and operations
- Auth and roles
backend/app/modules/auth/router.py - Project management
backend/app/modules/projects/router.py - Admin console API
backend/app/modules/admin/router.py - Audit events
backend/app/modules/audit/service.py - Notifications
backend/app/modules/notifications
Estimation workflow
- Document processing
backend/app/modules/documents/pipeline.py - Embeddings and retrieval
backend/app/modules/rag - Estimation agent
backend/app/modules/agent/orchestrator.py - BOQ calculation
backend/app/modules/boq - Estimate verification
backend/app/modules/verification/router.py
Vendor sourcing
- Vendor catalog
backend/app/modules/vendors/router.py - Vendor matching
backend/app/modules/matching/engine.py - Public marketplace
backend/app/modules/marketplace/router.py - RFQs and quotations
backend/app/modules/rfq/router.py
Runtime platform
- PostgreSQL and pgvector
backend/app/db/session.py - Background processing
backend/app/celery_app.py - Document storage
backend/app/modules/documents/storage.py
Other components
- User
- OpenAI services
Connections 32
- User → Role-based workspaces: uses
README.md - Role-based workspaces → API client: calls
frontend/src/App.tsx - API client → Auth and roles: HTTP requests
- Role-based workspaces → Project management: project workflows
README.md - Role-based workspaces → Document processing: uploads documents
README.md - Role-based workspaces → BOQ calculation: views estimates
README.md - Role-based workspaces → Estimate verification: reviews flags
README.md - Role-based workspaces → RFQs and quotations: manages sourcing
README.md - Role-based workspaces → Public marketplace: browses
README.md - Role-based workspaces → Admin console API: administers
README.md - Project management → Audit events: logs events
backend/app/modules/projects/router.py - Admin console API → Audit events: logs changes
backend/app/modules/admin/router.py - Document processing → Embeddings and retrieval: creates embeddings
backend/app/modules/documents/pipeline.py - Document processing → Document storage: stores uploads
backend/app/modules/documents/pipeline.py - Document processing → Background processing: queues processing
README.md - Estimation agent → Embeddings and retrieval: retrieves context
- Estimation agent → OpenAI services: plans with
README.md - BOQ calculation → Vendor matching: matches vendors
backend/app/modules/boq/router.py - BOQ calculation → Estimation agent: invokes tools
backend/app/modules/boq/router.py - Estimate verification → BOQ calculation: recalculates
backend/app/modules/verification/router.py - Vendor catalog → Background processing: queues document work
backend/app/modules/vendors/router.py - Vendor catalog → Document storage: stores documents
backend/app/modules/vendors/router.py - Vendor matching → Embeddings and retrieval: uses retrieval
backend/app/modules/matching/engine.py - RFQs and quotations → Notifications: notifies owners
backend/app/modules/rfq/router.py - RFQs and quotations → Audit events: records activity
backend/app/modules/rfq/router.py - Auth and roles → PostgreSQL and pgvector: reads users
backend/app/modules/auth/router.py - Project management → PostgreSQL and pgvector: reads and writes
backend/app/modules/projects/router.py - Document processing → PostgreSQL and pgvector: records documents
- BOQ calculation → PostgreSQL and pgvector: stores estimates
backend/app/modules/boq/router.py - RFQs and quotations → PostgreSQL and pgvector: stores quotations
backend/app/modules/rfq/router.py - Vendor catalog → PostgreSQL and pgvector: stores catalog
backend/app/modules/vendors/router.py - Public marketplace → PostgreSQL and pgvector: reads listings
backend/app/modules/marketplace/router.py