How vedant1234591/prop works
This is a construction-project marketplace with customer and seller accounts, competitive multi-round bidding, contract approval, and a vendor product-ordering flow. Customers submit projects; sellers bid and are selected; contracts proceed through party and admin review. Admins oversee marketplace activity, while vendors fulfill commerce orders. The map includes the documented automation, notifications, document generation, and upload capabilities. Source excerpts and the index establish many relationships; unsampled subsystems are represented only where their paths and purpose are supported.
Main entry points: statusAutomation.js Status automation · app.js Express application · adminController.js Admin controller · customerController.js Customer project workflow
Components 29
Application entry
- Express application
app.js - Authentication routes
routes/auth.js - Customer routes
routes/customer.js - Seller routes
routes/seller.js - Vendor routes
routes/vendor.js - Admin routes
routes/admin.js
Accounts and administration
- Account controller
controllers/authController.js - Admin controller
controllers/adminController.js - User profiles
models/User.js
Projects and contracts
- Customer project workflow
controllers/customerController.js - Seller bidding workflow
controllers/sellerController.js - Projects
models/Project.js - Bids and rounds
models/Bid.js - Contracts
models/Contract.js - Agreement templates
models/Agreement.js
Vendor commerce
- Vendor and order workflows
controllers/vendorController.js - Orders
models/Order.js - Products
models/Product.js - Vendor profiles
models/Vendor.js
Automation and services
- Status automation
services/statusAutomation.js - PDF generation
services/pdfGenerator.js - Email notifications
services/emailServices.js - In-app notices
models/Notice.js - File uploads
middleware/upload.js - Cloudinary storage
config/cloudinary.js
Other components
- Customers
- Sellers
- Vendors
- Admins
Connections 42
- Express application → Authentication routes: mounts routes
app.js - Express application → Customer routes: mounts routes
app.js - Express application → Seller routes: mounts routes
app.js - Express application → Vendor routes: mounts routes
app.js - Express application → Admin routes: mounts routes
app.js - Authentication routes → Account controller: dispatches to
routes/auth.js - Customer routes → Customer project workflow: dispatches to
routes/customer.js - Seller routes → Seller bidding workflow: dispatches to
routes/seller.js - Vendor routes → Vendor and order workflows: dispatches to
routes/vendor.js - Admin routes → Admin controller: dispatches to
routes/admin.js - Customers → Customer routes: uses
- Sellers → Seller routes: uses
- Vendors → Vendor routes: uses
- Admins → Admin routes: uses
- Account controller → User profiles: reads and updates
controllers/authController.js - Customer project workflow → Projects: creates and queries
controllers/customerController.js - Customer project workflow → Bids and rounds: queries bids
controllers/customerController.js - Customer project workflow → Contracts: queries contracts
controllers/customerController.js - Customer project workflow → Agreement templates: uses agreements
controllers/customerController.js - Seller bidding workflow → Projects: queries projects
controllers/sellerController.js - Seller bidding workflow → Bids and rounds: submits and revises
controllers/sellerController.js - Seller bidding workflow → Contracts: updates contracts
controllers/sellerController.js - Seller bidding workflow → Agreement templates: loads agreements
controllers/sellerController.js - Admin controller → Projects: administers projects
controllers/adminController.js - Admin controller → Bids and rounds: administers bids
controllers/adminController.js - Admin controller → Contracts: reviews contracts
controllers/adminController.js - Admin controller → User profiles: manages accounts
controllers/adminController.js - Vendor and order workflows → Orders: queries orders
controllers/vendorController.js - Vendor and order workflows → Products: queries products
controllers/vendorController.js - Vendor and order workflows → Vendor profiles: queries vendors
controllers/vendorController.js - Express application → Status automation: starts automation
app.js - Status automation → Projects: updates project states
services/statusAutomation.js - Status automation → Bids and rounds: manages bid rounds
services/statusAutomation.js - Status automation → Contracts: manages contracts
services/statusAutomation.js - Status automation → PDF generation: generates documents
services/statusAutomation.js - Status automation → Email notifications: sends notifications
services/statusAutomation.js - Status automation → In-app notices: creates notices
services/statusAutomation.js - Customer routes → File uploads: uses upload middleware
routes/customer.js - Seller routes → File uploads: uses upload middleware
routes/seller.js - Vendor routes → File uploads: uses upload middleware
routes/vendor.js - File uploads → Cloudinary storage: stores files
middleware/upload.js - Contracts → PDF generation: references generator
models/Contract.js