How sohamchakravorty2003/tender-procurement works
MinChem is an email- and document-driven tender management application. Users review classified Gmail messages, inspect tenders and supplier offers, upload or process PDF attachments, and resolve review cases. The React interface calls a FastAPI backend, which coordinates email, classification, document, offer, and tender services backed by SQLite. The excerpts and source index establish these major capabilities and many module references; some service-to-service edges are therefore based on indexed imports rather than inspected call sites.
Main entry points: main.py HTTP endpoints · App.jsx Application shell · api.js API client · upload_service.py PDF ingestion
Components 26
Web interface
- Application shell
minchem-frontend/src/App.jsx - Inbox review
minchem-frontend/src/components/InboxView.jsx - Tender detail
minchem-frontend/src/components/TenderDetail.jsx - Tender list
minchem-frontend/src/components/TendersView.jsx - Review cases
minchem-frontend/src/components/ReviewsView.jsx - Email compose
minchem-frontend/src/components/ComposeView.jsx - Thread view
minchem-frontend/src/components/ThreadView.jsx - Price chart
minchem-frontend/src/components/PriceChart.jsx - Status badges
minchem-frontend/src/components/Badges.jsx - API client
minchem-frontend/src/api.js
API orchestration
- HTTP endpoints
app/main.py - Request models
app/models.py
Email and tenders
- Gmail access
app/gmail_service.py - Email classification
app/classify_service.py - Bid processing
app/bid_service.py - Thread restoration
app/thread_restore_service.py
Documents and offers
- PDF ingestion
app/upload_service.py - Document analysis
app/document_service.py - Offer extraction
app/offer_service.py - Offer review marks
app/accept_service.py - Tender linking
app/link_service.py - PDF processing
app/pdf_service.py
Persistence
- Tender data store
app/tender_store.py
Other components
- MinChem user
- Google Gmail
- AWS Bedrock model
Connections 48
- MinChem user → Application shell: uses
- Application shell → Inbox review: shows
minchem-frontend/src/App.jsx - Application shell → Tender detail: shows
minchem-frontend/src/App.jsx - Application shell → Tender list: shows
minchem-frontend/src/App.jsx - Application shell → Review cases: shows
minchem-frontend/src/App.jsx - Application shell → Email compose: shows
minchem-frontend/src/App.jsx - Application shell → API client: loads data
minchem-frontend/src/App.jsx - Inbox review → API client: requests email
minchem-frontend/src/components/InboxView.jsx - Inbox review → Thread view: renders
minchem-frontend/src/components/InboxView.jsx - Inbox review → Status badges: renders
minchem-frontend/src/components/InboxView.jsx - Tender detail → API client: requests tender
minchem-frontend/src/components/TenderDetail.jsx - Tender detail → Price chart: renders
minchem-frontend/src/components/TenderDetail.jsx - Tender detail → Thread view: renders
minchem-frontend/src/components/TenderDetail.jsx - Tender detail → Status badges: renders
minchem-frontend/src/components/TenderDetail.jsx - Tender list → API client: requests tenders
minchem-frontend/src/components/TendersView.jsx - Review cases → API client: requests reviews
minchem-frontend/src/components/ReviewsView.jsx - Review cases → Status badges: renders
minchem-frontend/src/components/ReviewsView.jsx - Email compose → API client: sends email
minchem-frontend/src/components/ComposeView.jsx - Thread view → API client: loads thread
minchem-frontend/src/components/ThreadView.jsx - API client → HTTP endpoints: HTTP requests
minchem-frontend/src/api.js - HTTP endpoints → Request models: validates requests
app/main.py - HTTP endpoints → Gmail access: dispatches email
app/main.py - HTTP endpoints → PDF ingestion: dispatches upload
app/main.py - HTTP endpoints → Bid processing: dispatches bids
app/main.py - HTTP endpoints → Offer extraction: dispatches extraction
app/main.py - HTTP endpoints → Offer review marks: dispatches review
app/main.py - HTTP endpoints → Thread restoration: dispatches restore
app/main.py - Gmail access → Email classification: classifies mail
app/gmail_service.py - Gmail access → Google Gmail: accesses mailbox
- Email classification → Tender data store: stores analysis
app/classify_service.py - Email classification → AWS Bedrock model: classifies content
- Bid processing → Gmail access: reads messages
app/bid_service.py - Bid processing → Offer extraction: uses extraction
app/bid_service.py - Bid processing → Tender data store: reads and writes
app/bid_service.py - Thread restoration → Gmail access: restores thread
app/thread_restore_service.py - Thread restoration → PDF ingestion: reprocesses files
app/thread_restore_service.py - Thread restoration → Tender data store: updates records
app/thread_restore_service.py - PDF ingestion → Document analysis: analyzes PDFs
app/upload_service.py - PDF ingestion → PDF processing: extracts PDF text
app/upload_service.py - PDF ingestion → Tender linking: links documents
app/upload_service.py - PDF ingestion → Email classification: refreshes analysis
app/upload_service.py - PDF ingestion → Tender data store: stores documents
app/upload_service.py - Document analysis → Tender data store: saves references
app/document_service.py - Document analysis → AWS Bedrock model: classifies documents
- Offer extraction → Document analysis: uses document data
app/offer_service.py - Offer extraction → Email classification: uses email analysis
app/offer_service.py - Offer extraction → Tender data store: saves offers
app/offer_service.py - Offer review marks → Email classification: uses classifications
app/accept_service.py