How markopekasfer/apostoli works
High-Level Architecture Overview
a. Client Layer:
• Next.js Frontend Application
• Frontend components:
• User Interface (pages)
• Components (especially maps and user interactions)
• API Integration Layer
b. Backend Layer:
• Spring Boot Application
• Security Layer
• Service Layer
• Repository Layer
• Database (PostgreSQL)
Component Breakdown
• Pages Module (login, register, report, settings)
• UI Components Module
• Maps Integration Module
• Theme/Styling System
• API Client Services
• Controllers Layer
• AppUserController
• ReportController
• Security Layer
• JWT Authentication
• OAuth2 Integration
• CORS Configuration
• Service Layer
• User Management
• Report Management
• Location Services
• Photo Services
• Repository Layer
• Database Entities
Data Flow Representation
• User authentication flow
• Report submission flow
• Data retrieval flow
• API communication between frontend and backend
Specific Elements
• Disaster Reporting System
• User Management System
• Location Management
• Photo Management
• Notification System
• Security Infrastructure
Integration Points
External integrations:
• Google Maps API
• OAuth2 Providers
• PostgreSQL Database
• File Storage System