How raerta/assignment works
Main Components
A. Frontend Layer (Client-Side):
• Next.js Application Container
• Pages/Routes Structure (/karagetir, /stprm)
• Components Layer
• Services Layer
• UI Framework Components (Mantine)
• Static Assets (public directory)
B. API Integration Layer:
• API Client Services
• Type Definitions
• Endpoint Configurations
• [Presentation Layer]
• Pages (app directory)
• Components
• UI Framework (Mantine)
• [Business Logic Layer]
• Services
• API Integration
• [Data Layer]
• Types
• Constants
Component Relationships
• Pages importing and using components
• Components calling services
• Services using API integration
• Data flow between layers
Specific Implementation Details
Key architectural elements:
• Next.js App Router structure (src/app directory)
• Component hierarchy (src/components)
• Service layer (src/services)
• Type definitions (src/types)
• API integration (src/request)
Additional Elements
• Configuration files (next.config.mjs, tailwind.config.ts)
• External dependencies (Mantine UI)
• Environment configurations
Notes for Implementation
• The app's modular structure
• Clear separation of concerns
• Service-based architecture
• Type safety implementation
• API integration pattern
Key Considerations:
• Relationship between pages and their corresponding components
• Service layer's role in handling business logic
• Demonstrate how types are used across the application
• API integration flow