How vannguyen799/nutrition_web works
Main Components
A. Backend (Django) Layer:
• Admin Module
• admin_auth (Authentication)
• dashboard
• dishmanage
• foodmanage
• food_article_manage
• nutrientmanage
• peoplegroupmanage
• usermanage
• User Module
• user_auth
• home
• foodarticle
• Core Configuration
• nutrition_web (main Django project)
• settings, URLs, and configurations
B. Database Layer:
• MySQL Database (evident from mysql_database folder)
• Models for different modules
C. Static Assets Layer:
• Admin Interface Assets
• User Interface Assets
• JavaScript Components
• CSS Styles
D. Media Storage:
• Image Storage
• Upload Management
E. Data Collection Component:
• Web Crawler (data_crawl module)
Relationship Flows to Illustrate
• User requests → Django URLs → Views → Models → Database
• Authentication flows for both admin and user areas
• Static/Media file serving paths
• Data crawling process to database storage
• [Client Layer]
• ↕️
• [Web Server Layer (Django)]
• ↕️
• [Application Logic Layer]
• ↕️
• [Data Storage Layer]
Additional Elements
• Security layers (authentication/authorization)
• Template rendering flow
• Static/Media file serving
• Data crawling pipeline
• Database interaction patterns