How cafyrei/lacrochet works
La Crochet is an online handmade-goods shop with a customer storefront and an owner back office. Customers browse products, maintain a cart, sign in, choose pickup or delivery, and place cash-on-delivery or PayRex orders; the backend persists shop and order data and can arrange Lalamove delivery. The site also provides Yarnie chat, contact messaging, and owner tools for products, orders, messages, and newsletters. Edges use README workflow statements or source-index references; several route and frontend implementations were not excerpted, so their internal links are omitted where unverified.
Main entry points: main.py FastAPI server · orderRoutes.py Order handling · Router.jsx Storefront routes · CartContext.jsx Cart state
Components 24
Customer storefront
- Storefront routes
la-crochet-project/src/Router.jsx - Product browsing
la-crochet-project/src/pages/CatalogPage.jsx - Cart state
la-crochet-project/src/context/CartContext.jsx - Checkout
la-crochet-project/src/pages/CheckoutPage.jsx - Login context
la-crochet-project/src/context/AuthContext.jsx - Back office
la-crochet-project/src/components/admin/AdminLayout.jsx
Commerce backend
- FastAPI server
backend/main.py - Identity and roles
backend/auth.py - Order handling
backend/routes/orderRoutes.py - Product management
backend/routes/productRoutes.py - Cart endpoints
backend/routes/cartRoutes.py - Shop records
backend/database.py - Order records
backend/models/orderModel.py
Shop operations
- Owner operations
backend/routes/adminRoutes.py - Contact inbox
backend/routes/contactRoutes.py - Newsletter signup
backend/routes/newsletterRoutes.py - Product photos
backend/routes/photoRoutes.py - Yarnie chat
backend/routes/chatRoutes.py
External services
- PayRex
- Lalamove riders
- Google Gemini
- Supabase database
Other components
- Customer
- Shop owner
Connections 24
- Customer → Storefront routes: shops
README.md - Storefront routes → Product browsing: routes to
la-crochet-project/src/Router.jsx - Customer → Cart state: adds items
README.md - Cart state → Checkout: checks out
la-crochet-project/src/context/CartContext.jsx - Checkout → FastAPI server: sends order
README.md - Login context → FastAPI server: authenticates
README.md - FastAPI server → Order handling: registers routes
backend/main.py - FastAPI server → Product management: registers routes
backend/main.py - FastAPI server → Cart endpoints: registers routes
backend/main.py - Order handling → Order records: persists orders
backend/routes/orderRoutes.py - Order handling → Shop records: uses sessions
backend/routes/orderRoutes.py - Identity and roles → Shop records: loads users
backend/auth.py - Shop owner → Back office: manages shop
README.md - Back office → FastAPI server: uses backend
README.md - FastAPI server → Owner operations: registers routes
backend/main.py - FastAPI server → Contact inbox: registers routes
backend/main.py - FastAPI server → Newsletter signup: registers routes
backend/main.py - FastAPI server → Product photos: registers routes
backend/main.py - FastAPI server → Yarnie chat: registers routes
backend/main.py - Order handling → PayRex: creates payments
README.md - Order handling → Lalamove riders: arranges delivery
README.md - Owner operations → Lalamove riders: books riders
backend/routes/adminRoutes.py - Yarnie chat → Google Gemini: generates replies
backend/routes/chatRoutes.py - FastAPI server → Supabase database: stores records
README.md