How taruntyagi1/insta works
Main System Components
a) Frontend Layer:
• Website templates (templates/website/)
• Dashboard interface (dashboard/)
• Customer interface (customer/templates/)
• Static assets (static/)
b) Backend Layer:
• Core Django Application
• Multiple Django Apps:
• accounts (User management)
• catalogue (Product management)
• order (Order processing)
• basket (Shopping cart)
• checkout (Payment processing)
• customer (Customer management)
• voucher (Discount system)
• shipping (Shipping management)
c) Database Layer:
• PostgreSQL database (as specified in README)
Architectural Patterns to Highlight
a) MVC/MTV Pattern:
• Models (each app's models.py)
• Views (each app's views.py)
• Templates (template directories)
b) RESTful API Architecture:
• API endpoints (catalogue/api/, customer/api/)
• Serializers (api/v1/serializers.py)
• API Views (api/v1/views.py)
Component Relationships
Interactions:
a) User Flow:
• Authentication flow (accounts → customer)
• Shopping flow (catalogue → basket → checkout → order)
• Payment processing flow (checkout → payment gateway)
b) Data Flow:
• Product management (catalogue → partner)
• Order processing (basket → order → shipping)
• Customer management (accounts → customer → address)
Design Elements
Use these visual elements:
• Blue: Frontend components
• Green: Backend services
• Yellow: Database
• Red: External services/APIs
• Rectangles: Core components
• Hexagons: API endpoints
Implementation Details
a) Django Apps Structure:
• Core apps (accounts, catalogue, order)
• Supporting apps (shipping, voucher)
• Admin interface (dashboard)
b) Static Asset Management:
• Media files (media/)
• Static files (static/)
• Template structure