How vennisabarfi/culturalconnect works
Main Components
A. Frontend Layer (React Application)
• As a top-level component with these sub-components:
• Page Components (Home, Events, Business, Media, Resource, Search)
• Shared Components (NavigationBar, Footer)
• Routing System (implied by the structure)
• Use Vite as the build tool (indicated by vite.config.js)
B. Backend Layer (Go Application)
• Controllers Layer (showing all distinct controllers)
• Business Controller
• Events Controller
• Home Controller
• Media Controller
• Resources Controller
• User Authentication Controller
• Database Layer (SQL Database, indicated by migrations)
• Users Table
• Resources Table
• Events Table
• Media Table
• Businesses Table
• [Client Tier (React)] → [Application Tier (Go)] → [Data Tier (SQL Database)]
Component Relationships
• API calls from frontend to backend controllers
• Data flow between controllers and database
• Component dependencies within frontend
• Authentication flow through the system
Specific Elements
A. Frontend Section:
• Main pages as individual components
• Shared components
• Build process (Vite)
• Static asset handling
B. Backend Section:
• Controllers with their responsibilities
• Middleware layers (especially auth)
• API routes structure
• Database migration system
C. Database Section:
• Tables with key relationships
• Migration management
• Data flow patterns
Technical Details to Highlight
• Frontend:
• React + Vite stack
• CSS modules usage
• Route management
• State management
• Backend:
• Go services architecture
• Database connectivity
• API endpoint structure
• Authentication flow