How srujana728/price-pulse works
Price Pulse is a React and Flask dynamic-pricing product. A seller opens the dashboard, enters product pricing factors, requests an AI recommendation, and can apply the resulting price to the dashboard. The backend normalizes inputs and uses a pretrained Random Forest model; product state is kept in browser localStorage rather than a database. The README also describes product catalog management and pricing history. Dashboard implementation was not sampled, so its internal behavior and links are shown only where the README documents them.
Main entry points: Dashboard.jsx Product dashboard · Pricing.jsx Pricing inputs · App.js Route dispatch · app.py Flask prediction API
Components 17
Seller experience
- Landing page
src/pages/Home.jsx - Route dispatch
src/App.js - Demo login
src/pages/Login.jsx - Product dashboard
src/pages/Dashboard.jsx - Product catalog
src/pages/Dashboard.jsx - Product table view
src/components/ProductTable.jsx - Dashboard metrics
src/components/DashboardCards.jsx
Pricing workflow
- Pricing inputs
src/pages/Pricing.jsx - Prediction client
src/services/api.js - Price recommendation
src/pages/Pricing.jsx - Price result view
src/components/PriceResult.jsx - Pricing form component
src/components/PriceForm.jsx
Prediction backend
- Flask prediction API
backend/app.py - Feature normalization
backend/app.py - Price model
backend/price_model.pkl
Product state
- Browser localStorage
Other components
- Seller
Connections 24
- Seller → Landing page: opens
src/pages/Home.jsx - Landing page → Route dispatch: navigates
src/pages/Home.jsx - Route dispatch → Landing page: routes to
src/App.js - Route dispatch → Demo login: routes to
src/App.js - Route dispatch → Product dashboard: routes to
src/App.js - Route dispatch → Pricing inputs: routes to
src/App.js - Seller → Demo login: signs in
src/pages/Login.jsx - Demo login → Browser localStorage: writes demo user
src/pages/Login.jsx - Seller → Product dashboard: manages products
README.md - Product dashboard → Product catalog: shows products
README.md - Product catalog → Browser localStorage: stores product state
README.md - Product dashboard → Pricing inputs: opens pricing
README.md - Pricing inputs → Prediction client: requests prediction
src/pages/Pricing.jsx - Prediction client → Flask prediction API: POSTs prediction
src/services/api.js - Flask prediction API → Feature normalization: normalizes inputs
backend/app.py - Flask prediction API → Price model: predicts with
backend/app.py - Flask prediction API → Price recommendation: returns price
backend/app.py - Pricing inputs → Price recommendation: displays result
src/pages/Pricing.jsx - Price recommendation → Product dashboard: applies price
README.md - Product dashboard → Browser localStorage: updates product price
README.md - Product dashboard → Product table view: renders
- Product dashboard → Dashboard metrics: renders
- Pricing inputs → Pricing form component: uses inputs
- Pricing inputs → Price result view: shows recommendation