How bharatchandra-sys/vijetha-digital works
Vijetha Digital is a digital-printing commerce platform: customers browse products, configure and price an order, pay, then track fulfilment and receive notifications; staff and administrators manage operations. The repository also contains a separate Next.js SEO/marketing site alongside the React commerce application. The README documents pricing, Razorpay, email, storage and administration capabilities; source evidence is uneven, so unsampled implementation links are omitted or marked unverified rather than inferred as direct calls.
Main entry points: main.py FastAPI application · Checkout.jsx Checkout · router.py Order API · order_service.py Order lifecycle
Components 23
Commerce storefront
- React application
frontend/src/App.jsx - Product browsing
frontend/src/pages/ProductDetail.jsx - Checkout
frontend/src/pages/Checkout.jsx
Commerce services
- FastAPI application
app/main.py - Product API
app/api/products/router.py - Pricing API
app/api/pricing/router.py - Order API
app/api/orders/router.py - Order lifecycle
app/services/order_service.py - Payment API
app/api/payments/router.py - Reviews API
app/api/reviews/router.py - Review service
app/services/review_service.py - Order records
app/models/order.py - PostgreSQL
app/db/session.py
Identity and administration
- Authentication API
app/api/auth/router.py - Authentication service
app/services/auth_service.py - Token lifecycle
app/core/token_manager.py - Administration API
app/api/admin/router.py
Async and integrations
- Email tasks
app/tasks/email_tasks.py - Brevo email service
app/services/brevo_email_service.py - Razorpay
- Redis
SEO marketing
- SEO marketing site
frontend1/app/page.tsx
Other components
- Customer
Connections 29
- Customer → React application: uses
- React application → Product browsing: routes to
frontend/src/App.jsx - React application → Checkout: routes to
frontend/src/App.jsx - Product browsing → Product API: requests products
- Checkout → Pricing API: requests pricing
- Checkout → Order API: places order
- Checkout → Payment API: starts payment
- FastAPI application → Product API: registers
app/main.py - FastAPI application → Pricing API: registers
app/main.py - FastAPI application → Order API: registers
app/main.py - FastAPI application → Payment API: registers
app/main.py - FastAPI application → Authentication API: registers
app/main.py - FastAPI application → Reviews API: registers
app/main.py - FastAPI application → Administration API: registers
app/main.py - Order API → Order lifecycle: creates order
app/api/orders/router.py - Order lifecycle → Order records: persists lifecycle
app/services/order_service.py - Order API → PostgreSQL: queries orders
app/api/orders/router.py - Order lifecycle → Email tasks: dispatches notifications
app/services/order_service.py - Reviews API → Review service: calls
app/api/reviews/router.py - Review service → Order records: checks purchase
app/services/review_service.py - Authentication API → Authentication service: handles authentication
app/api/auth/router.py - Authentication API → Token lifecycle: validates refresh
app/api/auth/router.py - Authentication service → Token lifecycle: manages tokens
app/services/auth_service.py - Token lifecycle → Redis: checks revocation
- Administration API → Order lifecycle: oversees orders
app/api/admin/router.py - Payment API → Razorpay: verifies payments
- Email tasks → Brevo email service: sends email
app/tasks/email_tasks.py - Brevo email service → Customer: delivers notifications
- SEO marketing site → Customer: presents services