How arsanyemad86-eng/uxnin-store works
UXNIN is a client-side React storefront for fitness supplements, with shopping, account, administration, and analytics features. A shopper enters through the shared app shell, browses the shop or product detail, adds items to a cart, and proceeds through checkout; checkout posts an order through the API client. Global context manages shared state, including cart and wishlist, while the README documents persistent browser state and dashboard analytics. Several page implementations are unsampled, so their distinct capabilities are retained, but uncertain call relationships are omitted.
Main entry points: App.jsx App routing shell · AppContext.jsx Shared app state · axios.js API client · ProductCard.jsx Product card
Components 23
Storefront experience
- React entry
src/main.jsx - App routing shell
src/App.jsx - Navigation and search
src/components/Navbar.jsx - Home storefront
src/pages/Home.jsx - Landing page
src/pages/Landing.jsx
Shopping and orders
- Shop catalogue
src/pages/Shop.jsx - Product detail
src/pages/Products.jsx - Product card
src/components/ProductCard.jsx - Shopping cart
src/pages/Cart.jsx - Checkout flow
src/pages/Checkout.jsx
Accounts and admin
- Order administration
src/pages/AdminOrders.jsx - Product administration
src/pages/AdminProducts.jsx - Analytics dashboard
src/pages/Dashboard.jsx - Login
src/pages/Login.jsx - Registration
src/pages/Register.jsx - Password recovery
src/pages/ForgotPassword.jsx - Password reset
src/pages/ResetPassword.jsx
Application state
- Shared app state
src/context/AppContext.jsx
Data and API
- Product and seed data
src/data/products.jsx - API client
src/api/axios.js
Other components
- Shopper
- Application API
- Browser localStorage
Connections 39
- Shopper → React entry: opens storefront
README.md - React entry → Shared app state: provides state
src/main.jsx - React entry → App routing shell: renders
src/main.jsx - App routing shell → Home storefront: routes to
src/App.jsx - App routing shell → Landing page: routes to
src/App.jsx - App routing shell → Shop catalogue: routes to
src/App.jsx - App routing shell → Shopping cart: routes to
src/App.jsx - App routing shell → Product detail: routes to
src/App.jsx - App routing shell → Checkout flow: routes to
src/App.jsx - App routing shell → Analytics dashboard: routes to
src/App.jsx - App routing shell → Order administration: routes to
src/App.jsx - App routing shell → Product administration: routes to
src/App.jsx - App routing shell → Login: routes to
src/App.jsx - App routing shell → Registration: routes to
src/App.jsx - App routing shell → Password recovery: routes to
src/App.jsx - App routing shell → Password reset: routes to
src/App.jsx - Shopper → Navigation and search: searches and navigates
src/components/Navbar.jsx - Navigation and search → Shared app state: reads shared state
src/components/Navbar.jsx - Home storefront → Product card: renders products
src/pages/Home.jsx - Home storefront → Product and seed data: reads catalogue
src/pages/Home.jsx - Home storefront → Shared app state: uses app actions
src/pages/Home.jsx - Shop catalogue → Product card: renders products
src/pages/Shop.jsx - Shop catalogue → Product and seed data: uses catalogue
src/pages/Shop.jsx - Product detail → Product card: renders products
src/pages/Products.jsx - Product detail → API client: fetches products
src/pages/Products.jsx - Product card → Shared app state: updates cart and wishlist
src/components/ProductCard.jsx - Product card → Shopper: shows product actions
src/components/ProductCard.jsx - Shopping cart → Shared app state: reads cart state
src/pages/Cart.jsx - Checkout flow → Shared app state: reads and clears cart
src/pages/Checkout.jsx - Checkout flow → API client: posts order
src/pages/Checkout.jsx - API client → Application API: sends API requests
src/api/axios.js - Shared app state → Product and seed data: loads seed orders
src/context/AppContext.jsx - Shared app state → API client: validates promos and syncs wishlist
src/context/AppContext.jsx - Shared app state → Browser localStorage: persists app state
README.md - Login → API client: authenticates
src/pages/Login.jsx - Registration → API client: registers account
src/pages/Register.jsx - Analytics dashboard → API client: loads analytics
src/pages/Dashboard.jsx - Order administration → API client: manages orders
src/pages/AdminOrders.jsx - Product administration → API client: manages products
src/pages/AdminProducts.jsx