How riko-fernanda-s/bdl works
Closerz is a photocard storefront with a React shopping experience and a separate PHP/MySQL backend. The main user flow is browsing the catalog, adding cards to a cart, reviewing it, and confirming an order; login and signup support access, while an admin page manages catalog inventory. The sampled frontend state uses browser storage, and the backend exposes separate PHP data endpoints. The excerpts do not establish that the storefront calls those endpoints, so no frontend-to-backend connection is shown.
Main entry points: App.jsx App Router · AppContext.jsx App State · FigmaKeranjang.jsx Shopping Cart · FigmaCheckout.jsx Checkout
Components 18
Storefront
- App Router
fe/src/App.jsx - Storefront Landing
fe/src/components/FigmaLandingPage.jsx - Card Fan
fe/src/components/FigmaCardFan.jsx - Catalog Data
fe/src/data/figmaCatalog.js - Shopping Cart
fe/src/components/FigmaKeranjang.jsx - Checkout
fe/src/components/FigmaCheckout.jsx
Catalog Management
- Admin Catalog
fe/src/components/FigmaAdmin.jsx - App State
fe/src/context/AppContext.jsx
PHP Backend
- Order Endpoints
be/orders.php - Payment Endpoint
be/pay_order.php - Product Endpoint
be/produk.php - Batch Updates
be/update_batch.php - DB Connection
be/db.php - MySQL Database
be/database.sql
Other components
- Shopper
- LINE Admin
Connections 23
- Shopper → App Router: opens
- App Router → Storefront Landing: routes to
fe/src/App.jsx - App Router → Login: routes to
fe/src/App.jsx - App Router → Signup: routes to
fe/src/App.jsx - App Router → Shopping Cart: routes to
fe/src/App.jsx - App Router → Checkout: routes to
fe/src/App.jsx - App Router → Admin Catalog: routes to
fe/src/App.jsx - Storefront Landing → Card Fan: renders
fe/src/components/FigmaLandingPage.jsx - Storefront Landing → App State: uses
fe/src/components/FigmaLandingPage.jsx - Shopping Cart → Card Fan: renders
fe/src/components/FigmaKeranjang.jsx - Shopping Cart → App State: uses
fe/src/components/FigmaKeranjang.jsx - Shopping Cart → Catalog Data: reads
fe/src/components/FigmaKeranjang.jsx - Checkout → App State: uses
fe/src/components/FigmaCheckout.jsx - Checkout → Catalog Data: reads
fe/src/components/FigmaCheckout.jsx - Checkout → LINE Admin: confirms via
fe/src/components/FigmaCheckout.jsx - Login → App State: uses
fe/src/components/FigmaLogin.jsx - Signup → App State: uses
fe/src/components/FigmaSignUp.jsx - Admin Catalog → App State: uses
fe/src/components/FigmaAdmin.jsx - App State → Catalog Data: initializes from
fe/src/context/AppContext.jsx - Order Endpoints → DB Connection: uses
be/orders.php - Payment Endpoint → DB Connection: uses
be/pay_order.php - Product Endpoint → DB Connection: uses
be/produk.php - Batch Updates → DB Connection: uses
be/update_batch.php