How fabiorg06/cv-analyzer works
Main Components
• Frontend: Represented by the “cv-analyzer” directory. This component includes:
• The Next.js application (in the “app” folder) and page components (e.g., page.tsx, layout.tsx).
• UI components (buttons, cards, dropdown menus, etc.) used for displaying results.
• Services (such as the API layer in “app/services/api.ts”) that handle communication with the backend.
• Backend: The “cv-analyzer-api” directory hosts the Django application. Key sub-components include:
• Two distinct Django apps: “analitics_model” (for AI analytics and model evaluation) and “file_analizer” (for processing and managing file uploads).
• The core Django project configuration (cvAnalizer/cvAnalizer) with settings, URLs, and the WSGI/ASGI entry points.
• Database: Although not explicit in the file tree, the README mentions PostgreSQL. Represent it as a separate component that the backend interacts with.
• AI Model: Highlight the integration with the Gemini-2.0-Flash AI model. This could be encapsulated within the “analitics_model” or as an external service if it is hosted separately.
• Containerization/Deployment: Indicate the use of Docker (and Docker Compose) to containerize both the backend and frontend, ensuring easy deployment and scaling.
Relationships and Data Flow
• The backend receives these requests and processes them via its Django apps by:
• Analyzing CV and job offer data,
• Interacting with the AI model to compare skills,
• Communicating with the PostgreSQL database for persisting or retrieving data.
Architectural Patterns and Design Principles
• A service-oriented architecture by splitting responsibilities between the Django apps (“analitics_model” and “file_analizer”).
• Clearly delineate the separation of concerns: the frontend handles the presentation and user interactions, whereas the backend is responsible for data processing and integration with the AI model.
• Adding labels such as “API Layer” and “Business Logic” to the backend, and “UI Components” for the frontend to highlight their roles.