How informatyzacja/parliamentary-system works
Main Components
a. Frontend Layer (Next.js Application):
• Client-side components (React)
• Server-side rendering capabilities
• Authentication system (NextAuth)
• Internationalization system
• GraphQL client
b. Backend Layer (Strapi):
• REST/GraphQL API
• Content Management System
• Authentication/Authorization
• File management system
• Database models/content types
c. External Services:
• USOS Integration (University System)
• Google OAuth
• Translation service (Crowdin)
[Client Layer]
• ↓ ↑
[API Gateway/CDN]
• ↓ ↑
[Frontend Server (Next.js)]
• ↓ ↑
[Backend Server (Strapi)]
• ↓ ↑
[Database Layer]
Key Elements to Highlight
a. Data Flow:
• Authentication flow (USOS, Google OAuth)
• Document management flow
• Content delivery flow
• API communication patterns
b. Main Features:
• Meeting management
• Resolution handling
• Student management
• Term of office tracking
• Multilingual support
Important Architectural Patterns
a. Frontend Architecture:
• Pages structure (/meetings, /resolutions, /structure)
• Component hierarchy
• State management (atoms)
• API integration layer
b. Backend Architecture:
• Content type models
• Controller-Service pattern
• Authentication middleware
• File upload system
Infrastructure Components
• Docker containers
• Database storage
• File storage system
• CI/CD pipeline