How macewancs/w25_b3_repo works
Main Components
• Backend Service:
– Implemented in Java 21 using Gradle with the Javalin API framework.
– Contains core functionalities (e.g., authentication, database access, email notifications, CDN management, reporting/statistics, and utility services) as indicated by the packages and service classes (e.g., AuthManager, DatabaseManager, EmailManager, CdnManager, Statistics).
– Also provides static web content for the administrative interface (files like admin/index.html, reports.html, etc.) which indicates a backend web admin panel.
• Frontend Application:
– A Node/NPM project using Typescript and Expo, which implies a mobile (and possibly web) client focused on tutoring.
– Organized with distinct directories for student and tutor experiences. For example, there are separate layouts, chat lists, settings, and user account management pages for each user type.
– Contains shared assets, components, hooks, and utilities to support the user interface and business logic.
Relationships and Interactions
• The Frontend communicates with the Backend’s API endpoints to handle operations such as authentication, messaging (chat features), user data retrieval, and setting preferences.
• The Backend, in turn, interacts with internal modules such as the DatabaseManager (to fetch or persist information) and external services (as needed by EmailManager and CdnManager).
• There is also a clear distinction between the administrative interface (served by static resources in the Backend) and the user interfaces within the Frontend (separated for tutors and students).
Architectural Patterns and Design Principles
• Separation of Concerns: The project is split into two major tiers—API backend and client frontend—with well-defined responsibilities.
• Modular Design: The backend leverages service components (e.g., AuthManager, Statistics) that encapsulate specific functionalities, and the frontend separates content by user role with dedicated routes and layout files.
• Use of Frameworks: Javalin for lightweight and efficient REST APIs, and Expo for streamlined cross-platform mobile development.
• Clear Routing and UI Components: The frontend is organized around Next.js-like routing (using folders such as (student) and (tutor) with layouts and nested routes) and has reusable UI components with test coverage.
Final Touches
• Every component has a clear label.