How phamvantu090303/tro works
Frontend Layer
• React Application
• Components
• Pages
• State Management
• Routing
Backend Layer
• Node.js Server
• Controllers
• Services
• Models
• Middlewares
Database
• Database Server (e.g., MongoDB, PostgreSQL)
Infrastructure
• Nginx
• Reverse Proxy
• Static File Serving
• Docker Containers
• Frontend Container
• Backend Container
• Nginx Container
Interactions
• Frontend communicates with Backend through APIs.
• Backend interacts with the Database.
• Nginx routes traffic to Frontend or Backend as needed.
• Docker Compose manages the lifecycle of all containers.
Final Recommendations
• Keep It Organized: Align components logically to represent the flow of data and interactions without clutter.