How malikdanish71/small-business- works
SmartB2B is a local B2B marketplace and agreement-management prototype. Buyers browse and filter supplier products, submit quote requests or RFQs, and view or create draft agreements; the Express API validates requests and reads or writes SQLite records. The site also provides a landing page and placeholder destinations. Browser-to-API and API-to-database interactions are visible in the sampled JavaScript and server code; page-to-script bindings and unsampled page details are not shown.
Main entry points: app.js Product and quote API · database.js SQLite records · marketplace.js Product browsing · agreements.js Agreement management
Components 14
Browser experience
- Landing page
index.html - Marketplace page
marketplace.html - Agreements page
agreements.html - Placeholder pages
coming-soon.html - Landing interactions
js/landing.js - Shared interactions
js/main.js
Marketplace workflows
- Product browsing
js/marketplace.js - Agreement management
js/agreements.js
API services
- Product and quote API
server/app.js - Agreement API
server/app.js - RFQ API
server/app.js
Runtime and storage
- SQLite records
server/database.js - HTTP server startup
server/index.js
Other components
- Buyer
Connections 18
- Buyer → Landing page: visits
README.md - Buyer → Marketplace page: browses
README.md - Buyer → Agreements page: manages
README.md - Buyer → Placeholder pages: visits
README.md - Product browsing → Product and quote API: fetches products
js/marketplace.js - Product browsing → Product and quote API: submits quotes
js/marketplace.js - Product browsing → RFQ API: submits RFQs
js/marketplace.js - Agreement management → Agreement API: loads agreements
js/agreements.js - Agreement management → Agreement API: creates drafts
js/agreements.js - Agreement management → Shared interactions: opens modals
js/agreements.js - Product browsing → Shared interactions: opens modals
js/marketplace.js - Product and quote API → SQLite records: reads products
server/app.js - Product and quote API → SQLite records: writes quotes
server/app.js - Agreement API → SQLite records: reads and writes
server/app.js - RFQ API → SQLite records: writes RFQs
server/app.js - HTTP server startup → SQLite records: opens database
server/index.js - HTTP server startup → Product and quote API: starts app
server/index.js - Landing interactions → Landing page: animates landing