How poojitha-annam/floranest works
FloraNest is a plant-and-flower e-commerce application with a React storefront, Express API, and MySQL persistence. The customer workflow runs from browsing products and managing a cart through checkout and order tracking; registration and login are separate account flows. Admin capabilities cover dashboards, catalog and inventory, customers, orders, and reports. The excerpts show key storefront, order, tracking, and admin API behavior; several admin UI and backend wiring details are unsampled, so those links are omitted or marked unverified.
Main entry points: App.jsx Storefront shell · adminRoutes.js Admin API · server.js Store API · db.js Database client
Components 22
Customer storefront
- Storefront shell
floranest/src/App.jsx - Product browsing
floranest/src/pages/Home.jsx - Product card
floranest/src/components/ProductCard.jsx - Cart
floranest/src/pages/Cart.jsx - Checkout
floranest/src/pages/Checkout.jsx - Registration
floranest/src/pages/Register.jsx - Login
floranest/src/pages/Login.jsx - Order tracking view
floranest/src/pages/OrderTracking.jsx - Navigation
floranest/src/components/Navbar.jsx - Button control
floranest/src/components/Button.jsx - Store footer
floranest/src/components/Footer.jsx
Customer API
- Store API
backend/server.js - Tracking API
backend/orderTrackingRoutes.js
Store administration
- Admin dashboard
floranest/src/admin - Catalog and inventory
floranest/src/admin - Customer management
floranest/src/admin/CustomerManagement.jsx - Order management
floranest/src/admin/OrderManagement.jsx - Reports
floranest/src/admin/Reports.jsx - Admin API
backend/adminRoutes.js
Persistence
- Database client
backend/db.js - MySQL database
Other components
- Customer
Connections 25
- Customer → Storefront shell: uses
README.md - Storefront shell → Product browsing: renders
floranest/src/App.jsx - Storefront shell → Cart: renders
floranest/src/App.jsx - Storefront shell → Checkout: renders
floranest/src/App.jsx - Storefront shell → Registration: renders
floranest/src/App.jsx - Storefront shell → Login: renders
floranest/src/App.jsx - Storefront shell → Order tracking view: renders
floranest/src/App.jsx - Storefront shell → Navigation: renders
floranest/src/App.jsx - Storefront shell → Store footer: renders
floranest/src/App.jsx - Product browsing → Product card: renders
floranest/src/pages/Home.jsx - Product card → Button control: uses
floranest/src/components/ProductCard.jsx - Navigation → Button control: uses
floranest/src/components/Navbar.jsx - Storefront shell → Store API: posts orders
floranest/src/App.jsx - Registration → Store API: posts registration
floranest/src/pages/Register.jsx - Order tracking view → Tracking API: fetches status
floranest/src/pages/OrderTracking.jsx - Store API → Database client: queries
backend/server.js - Tracking API → Database client: queries
backend/orderTrackingRoutes.js - Admin API → Database client: queries
backend/adminRoutes.js - Database client → MySQL database: connects
- Store API → Admin API: mounts routes
backend/server.js - Admin dashboard → Admin API: uses API
- Catalog and inventory → Admin API: uses API
- Customer management → Admin API: uses API
- Order management → Admin API: uses API
- Reports → Admin API: uses API