How sharadwowevents/price-ladder works
Price Ladder is a team pricing application: users sign in, then browse price quotes; administrators manage users, pricing formulas, items, imports, and quote history. The React app routes users to these workflows, and a database adapter sends collection operations to an Express API backed by MongoDB. Formula calculations and quote generation are implemented in shared utilities and invoked by item administration. Source excerpts establish these connections; the README is empty, so no additional documented capabilities can be verified.
Main entry points: App.jsx App & Auth · db.js Database Adapter · PricesPage.jsx Price List · FormulaPage.jsx Formula & Items
Components 10
Application
- App & Auth
Frontend/src/App.jsx - User Management
Frontend/src/pages/UsersPage.jsx - Shared UI
Frontend/src/components/UI.jsx
Pricing Workflows
- Price List
Frontend/src/pages/PricesPage.jsx - Formula & Items
Frontend/src/pages/FormulaPage.jsx - Pricing Utilities
Frontend/src/lib/utils.js
Persistence
- Database Adapter
Frontend/src/lib/db.js - MongoDB
API Backend
- REST API
Backend/server.js
Other components
- User
Connections 16
- User → App & Auth: signs in
Frontend/src/App.jsx - App & Auth → Price List: renders
Frontend/src/App.jsx - App & Auth → User Management: renders admin
Frontend/src/App.jsx - App & Auth → Formula & Items: renders admin
Frontend/src/App.jsx - App & Auth → Database Adapter: reads and writes
Frontend/src/App.jsx - Price List → Database Adapter: reads quotes
Frontend/src/pages/PricesPage.jsx - User Management → Database Adapter: manages users
Frontend/src/pages/UsersPage.jsx - Formula & Items → Database Adapter: manages pricing data
Frontend/src/pages/FormulaPage.jsx - Formula & Items → Pricing Utilities: calculates quotes
Frontend/src/pages/FormulaPage.jsx - Price List → Pricing Utilities: formats prices
Frontend/src/pages/PricesPage.jsx - Formula & Items → Shared UI: renders pricing UI
Frontend/src/pages/FormulaPage.jsx - Price List → Shared UI: renders discounts
Frontend/src/pages/PricesPage.jsx - User Management → Shared UI: uses dialogs
Frontend/src/pages/UsersPage.jsx - Shared UI → Pricing Utilities: calculates margin
Frontend/src/components/UI.jsx - Database Adapter → REST API: sends API requests
Frontend/src/lib/db.js - REST API → MongoDB: reads and writes
Backend/server.js