How ivanpastorcic/letecimedvjedici works
Main Components
a) Frontend Layer:
• React.js application structure with key components:
• User Interface Components (Anonymous, Login, Register)
• Feature Components (Report, AidActions, ResourceRequests)
• Page Components (HomePage, MapPage, ProfilePage)
b) Backend Layer:
• Spring Boot application with:
• Controllers (ActionController, ReportController, etc.)
• Services Layer
• Repository Layer
• Security Components (OAuth2)
c) Database Layer:
• H2 Database with main entities:
• Users (AppUser, HumanitarianOrganization)
• Disaster Management (Report, NaturalDisaster)
• Location Data (County, Settlement)
• Resources and Needs (Action, Need, Resource)
Key Interactions to Highlight
a) User Flows:
• Anonymous disaster reporting path
• Authenticated user reporting path
• Humanitarian organization resource management
• Administrative oversight and verification
b) Data Flows:
• Report submission and verification process
• Notification system
• Resource allocation and management
• Location-based services
[Frontend Layer]
• (REST API/OAuth2)
• v
[Backend Layer]
• (JPA/Hibernate)
• v
[Database Layer]
Component Relationships
• Frontend components and their corresponding backend controllers
• Controllers and services
• Services and repositories
• Cross-cutting concerns (security, notifications)
Architectural Patterns to Emphasize
• MVC pattern in the frontend
• Service-oriented architecture in the backend
• Repository pattern for data access
• Observer pattern for notifications
Remember to highlight the key functional requirements from the README, such as:
• Interactive map functionality
• Real-time notifications
• Resource management
• User role management
• Location-based services
• Anonymous reporting capabilities
This system design should reflect the comprehensive nature of the application while maintaining clarity about how different components interact to fulfill the core mission of crisis management and response coordination.