How prastut101/eva-atelier works
EVA Atelier is a handbag e-commerce application with a customer storefront, administrative features, a FastAPI backend, database-backed catalog and orders, authentication, and Khalti payments. The main purchase path is storefront browsing and cart use, checkout through the orders API, order persistence, and—when selected—payment initiation; customers can also track orders. The graph includes documented storefront and admin capabilities, but source excerpts do not establish how individual frontend scripts call API routes, so those links are omitted.
Main entry points: main.py FastAPI app · orders.py Orders and tracking · database.py Database sessions · products.py Products API
Components 26
Customer storefront
- Store pages
frontend/templates - Store interactions
frontend/static/js - Cart and checkout UI
frontend/static/js/cart.js - Wishlist UI
frontend/static/js/wishlist.js - Order tracking UI
frontend/static/js/order-tracking.js
Administration
- Admin pages
frontend/admin - Admin interactions
frontend/static/js/admin.js
API and domain
- FastAPI app
backend/app/main.py - Products API
backend/app/routers/products.py - Categories API
backend/app/routers/categories.py - Product images API
backend/app/routers/product_images.py - Orders and tracking
backend/app/routers/orders.py - Payment callbacks
backend/app/routers/payments.py - Store analytics
backend/app/routers/analytics.py - API schemas
backend/app/schemas
Identity and persistence
- Authentication
backend/app/auth.py - Database sessions
backend/app/database.py - User records
backend/app/models/user.py - Product records
backend/app/models/product.py - Category records
backend/app/models/category.py - Order records
backend/app/models/order.py
External services
- Khalti service
backend/app/services/khalti.py - Order email
backend/app/services/email.py
Other components
- Shopper
- Administrator
- Khalti gateway
Connections 38
- Shopper → Store pages: browses
README.md - Shopper → Cart and checkout UI: uses
README.md - Shopper → Wishlist UI: uses
README.md - Shopper → Order tracking UI: checks orders
README.md - Administrator → Admin pages: manages store
README.md - Store pages → FastAPI app: served by
backend/app/main.py - Admin pages → FastAPI app: served by
backend/app/main.py - FastAPI app → Products API: registers
backend/app/main.py - FastAPI app → Categories API: registers
backend/app/main.py - FastAPI app → Product images API: registers
backend/app/main.py - FastAPI app → Orders and tracking: registers
backend/app/main.py - FastAPI app → Payment callbacks: registers
backend/app/main.py - FastAPI app → Store analytics: registers
backend/app/main.py - FastAPI app → Authentication: authenticates login
backend/app/main.py - Products API → Product records: reads and writes
backend/app/routers/products.py - Products API → Category records: validates category
backend/app/routers/products.py - Categories API → Category records: reads and writes
backend/app/routers/categories.py - Product images API → Product records: updates images
backend/app/routers/product_images.py - Orders and tracking → Product records: checks products
backend/app/routers/orders.py - Orders and tracking → Order records: creates and updates
backend/app/routers/orders.py - Orders and tracking → Khalti service: initiates payment
backend/app/routers/orders.py - Orders and tracking → Order email: sends confirmation
backend/app/routers/orders.py - Payment callbacks → Khalti service: verifies payment
backend/app/routers/payments.py - Store analytics → Order records: queries sales
backend/app/routers/analytics.py - Store analytics → User records: queries users
backend/app/routers/analytics.py - Authentication → User records: loads account
backend/app/auth.py - Khalti service → Khalti gateway: calls API
backend/app/services/khalti.py - Products API → API schemas: uses contracts
backend/app/routers/products.py - Categories API → API schemas: uses contracts
backend/app/routers/categories.py - Orders and tracking → API schemas: uses contracts
backend/app/routers/orders.py - Authentication → Database sessions: opens sessions
backend/app/auth.py - Products API → Database sessions: opens sessions
backend/app/routers/products.py - Categories API → Database sessions: opens sessions
backend/app/routers/categories.py - Orders and tracking → Database sessions: opens sessions
backend/app/routers/orders.py - Product records → Database sessions: maps tables
backend/app/models/product.py - Category records → Database sessions: maps tables
backend/app/models/category.py - Order records → Database sessions: maps tables
backend/app/models/order.py - User records → Database sessions: maps tables
backend/app/models/user.py