How nhathuy1603/phuonganh_rental_clothes works
This is a clothing-rental storefront and operations app, with a separate makeup-services and appointment flow. Customers browse products, check rental availability, build a cart and submit bookings; they can also explore makeup services and request appointments. Admins manage rental bookings, products, categories and makeup operations, with finance and calendar views. The frontend uses seed data as a fallback and calls an API; backend persistence is represented by the server and database modules. Several pages and backend internals were not excerpted, so their detailed links are omitted.
Main entry points: App.tsx App coordinator · AdminDashboardPage.tsx Admin dashboard · catalog-service.ts Catalog data service · booking-service.ts Rental booking logic
Components 21
Storefront
- App coordinator
src/App.tsx - Product catalog
src/pages/customer/CatalogPage.tsx - Home and reviews
src/pages/customer/HomePage.tsx - Contact
src/pages/customer/ContactPage.tsx - Product details
src/components/product/ProductModal.tsx
Rental operations
- Cart and checkout
src/components/cart/CartDrawer.tsx - Rental booking logic
src/services/booking-service.ts - Admin dashboard
src/pages/admin/AdminDashboardPage.tsx - Product management
src/pages/admin/AdminProductsPage.tsx - Booking management
src/pages/admin/AdminRentalBookingsPage.tsx - Finance view
src/pages/admin/AdminFinancePanel.tsx - Rental calendar
src/pages/admin/AdminMakeupCalendarPage.tsx
Makeup services
- Makeup service pages
src/pages/customer/MakeupHubPage.tsx - Makeup booking
src/pages/customer/MakeupDetailPage.tsx - Makeup services admin
src/pages/admin/AdminMakeupServicesPage.tsx
Data and server
- Catalog data service
src/services/catalog-service.ts - Seed data
src/data/seed-data.ts - API client
src/services/api.ts - Backend API
server/src/index.ts - Database access
server/src/db.ts
Other components
- Customer
Connections 24
- Customer → App coordinator: uses
src/App.tsx - App coordinator → Product catalog: renders
src/App.tsx - App coordinator → Home and reviews: renders
src/App.tsx - App coordinator → Contact: renders
src/App.tsx - App coordinator → Product details: renders
src/App.tsx - App coordinator → Cart and checkout: renders
src/App.tsx - App coordinator → Admin dashboard: renders
src/App.tsx - App coordinator → Makeup service pages: renders
src/App.tsx - App coordinator → Makeup booking: renders
src/App.tsx - App coordinator → Catalog data service: loads data
src/App.tsx - App coordinator → Rental booking logic: creates bookings
src/App.tsx - Cart and checkout → Rental booking logic: checks availability
src/components/cart/CartDrawer.tsx - Product details → Rental booking logic: checks availability
src/services/booking-service.ts - Admin dashboard → Product management: renders
src/pages/admin/AdminDashboardPage.tsx - Admin dashboard → Booking management: renders
src/pages/admin/AdminDashboardPage.tsx - Admin dashboard → Finance view: renders
src/pages/admin/AdminDashboardPage.tsx - Admin dashboard → Rental calendar: renders
src/pages/admin/AdminDashboardPage.tsx - Admin dashboard → Makeup services admin: renders
src/pages/admin/AdminDashboardPage.tsx - Makeup booking → App coordinator: submits appointment
src/App.tsx - Makeup services admin → Admin dashboard: managed by
src/pages/admin/AdminDashboardPage.tsx - Catalog data service → API client: requests data
src/services/catalog-service.ts - Catalog data service → Seed data: falls back to
src/services/catalog-service.ts - Backend API → Database access: uses
server/src/index.ts - API client → Backend API: sends requests