How rithish-codecraft/zabbro works
ZABBRO is a full-stack streetwear storefront. Shoppers browse and filter drops, inspect product variants, add items to a persistent cart, submit checkout, and view confirmation or order history. Separate account and admin workflows support profile/authentication, inventory and order management, image uploads, and wishlists. The app’s database layer provides Neon-backed catalog and order data with in-memory fallback; Cloudinary supports image delivery and uploads. Relationships are limited to those shown in excerpts, the route registry, or README; unsampled route internals are not asserted.
Main entry points: root.tsx App Shell · index.server.ts Catalog and Order Access · checkout.tsx Checkout · cart-context.tsx Cart State
Components 26
Storefront
- App Shell
app/root.tsx - Drop Catalog
app/routes/home.tsx - Category Browse
app/routes/category.tsx - Product Detail
app/routes/product-detail.tsx - Product Card
app/components/ProductCard.tsx - Navigation
app/components/Navbar.tsx
Shopping and Orders
- Cart State
app/context/cart-context.tsx - Cart Drawer
app/components/CartDrawer.tsx - Checkout
app/routes/checkout.tsx - Order API
app/routes/api.orders.ts - Order Confirmation
app/routes/order-success.tsx
Accounts and Admin
- Order History
app/routes/orders.tsx - Authentication
app/lib/auth.server.ts - Login and Registration
app/routes/auth.login.tsx - Customer Profile
app/routes/profile.tsx - Admin Center
app/routes/admin.tsx - Wishlist API
app/routes/api.wishlist.ts - Upload API
app/routes/api.upload.ts
Data and Integrations
- Cloudinary Upload
app/lib/cloudinary.server.ts - Image Optimization
app/lib/cloudinary.ts - Catalog and Order Access
app/db/index.server.ts - Database Schema
app/db/schema.ts - Fallback Catalog
app/db/mock-data.ts - Neon PostgreSQL
- Cloudinary CDN
Other components
- Shopper
Connections 29
- Shopper → App Shell: browses
README.md - App Shell → Drop Catalog: routes to
- App Shell → Category Browse: routes to
- App Shell → Product Detail: routes to
- Drop Catalog → Product Card: renders
- Shopper → Cart State: adds items
README.md - Cart Drawer → Cart State: reads and updates
app/components/CartDrawer.tsx - App Shell → Cart Drawer: renders
app/root.tsx - Shopper → Checkout: submits order
README.md - Checkout → Cart State: uses cart
- Checkout → Order API: posts order
- Order API → Catalog and Order Access: persists order
README.md - Checkout → Order Confirmation: confirms order
README.md - Shopper → Login and Registration: signs in
README.md - Login and Registration → Authentication: manages session
- App Shell → Authentication: loads user
app/root.tsx - Shopper → Customer Profile: manages profile
README.md - Shopper → Order History: views orders
README.md - Shopper → Wishlist API: manages wishlist
- Shopper → Admin Center: manages inventory
README.md - Admin Center → Upload API: uploads images
README.md - Upload API → Cloudinary Upload: requests upload
- Cloudinary Upload → Cloudinary CDN: uploads assets
README.md - Product Detail → Image Optimization: transforms images
- Catalog and Order Access → Database Schema: queries schema
app/db/index.server.ts - Catalog and Order Access → Fallback Catalog: uses fallback data
app/db/index.server.ts - Catalog and Order Access → Neon PostgreSQL: queries database
README.md - App Shell → Navigation: renders
app/root.tsx - App Shell → Catalog and Order Access: loads wishlist
app/root.tsx