How eddyfadeev/shiftslogger works
Main Components Identification
The system consists of two main applications:
• ShiftsLogger.WebApi (Backend)
• ShiftsLogger.ConsoleUI (Frontend)
Component Details
Backend Components:
┌─ ShiftsLogger.WebApi ─────────────────────────┐
• ┌─ API Controllers ──┐ ┌─ Services ──────┐ │
• Locations │━━━▶│ - LocationService│ │
• Shifts │ │ - ShiftService │ │
• ShiftTypes │ │ - UserService │ │
• Users │ └────────────────┬─┘ │
• ┘ │ │
• ▼ │
• ┌─ Repository Layer ─┐ ┌─ Entity ────────┐│
• LocationRepo │◀───│ - Location ││
• ShiftRepo │ │ - Shift ││
• ShiftTypeRepo │ │ - ShiftType ││
• UserRepo │ │ - User ││
• ┬───────┘ └────────────────┘│
• ┌──────────▼──────────────────────────┐ │
• Database Layer │ │
• ┘ │
• ┘
Frontend Components:
┌─ ShiftsLogger.ConsoleUI ────────────────────┐
• ┌─ Presentation ─────┐ ┌─ View Services ─┐│
• LocationsMenu │ │ - MenuHandler ││
• ShiftsMenu │ │ - TableBuilder ││
• UsersMenu │ │ - Navigation ││
• ┬─────────┘ └───────┬─────────┘│
• ┌────────▼─────────────────────▼────────┐ │
• API Services │ │
• LocationService │ │
• ShiftService │ │
• UserService │ │
• ┬─────────────────┘ │
• ┌──────────────────▼─────────────────┐ │
• HTTP Client Layer │ │
• ┘ │
• ┘
Integration and Data Flow
Following interactions:
• HTTP/REST communication between Frontend and Backend
• Database operations flow
• Cross-cutting concerns like logging
• Authentication/Authorization flow (if implemented)