How sdanielsilva/cultivua works
Main System Components
A. Frontend Layer (Angular)
• Present the user interface components:
• Dashboard Module
• Plant Management Module
• E-commerce Module
• Quiz System
• Authentication Module
• Blog Module
B. Backend Layer (Laravel)
• API structure with:
• Controllers Layer
• Models Layer
• Services Layer
• Authentication Middleware
• Database Layer
C. External Services Integration
• Connections to:
• PlantID API
• Perenual API
• IoT System (Arduino)
Detailed Component Breakdown
Frontend (Angular):
[User Interface Layer]
↓
[Component Layer]
• Dashboard Components
• Plant Management
• E-commerce Components
• Authentication Components
↓
[Services Layer]
• HTTP Services
• State Management
• Authentication Service
Backend (Laravel):
[API Routes Layer]
↓
[Middleware Layer]
• Authentication
• Admin Access
• User Verification
↓
[Controllers]
• Plant Controllers
• User Controllers
• Order Controllers
• Quiz Controllers
↓
[Models Layer]
• User/Admin Models
• Plant/Kit Models
• Order Models
↓
[Database Layer]
Data Flow Representation
• User interactions → Frontend
• Frontend → Backend API calls
• Backend → Database operations
• Backend → External API interactions
• IoT devices → Backend data flow
Key Integration Points
Crucial integration points:
• Authentication flow between frontend and backend
• Real-time sensor data integration
• External API communication paths
• Database interaction patterns
Specific Implementation Details
Technical elements:
• Docker container architecture
• MySQL database connections
• Angular-Laravel API communication
• IoT sensor data flow
• External API integration points
Security Layer
Security implementations:
• JWT/Token authentication flow
• Admin middleware protection
• API route protection
• User data encryption
Component Relationships
• Clear separation between frontend and backend
• Distinct service boundaries
• Data flow patterns
Technical Stack Integration
• Angular frontend architecture
• Laravel backend structure
• Database design
• External service integration
Deployment Architecture
• Docker container organization
• Development vs production environments
• Scaling considerations