# nayelymosquera/registro-de-estudiantes architecture

> Architecture diagram of the GitHub repository nayelymosquera/registro-de-estudiantes, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-07-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nayelymosquera/registro-de-estudiantes
- Repository: https://github.com/nayelymosquera/registro-de-estudiantes

## Overview

##### Project Type and Purpose
- This is a full-stack monorepo combining:
- A standalone Angular frontend (“frontend-angular”)
- Two Node.js/Express microservices (“estudiantes-service” and “carreras-service”)
- Purpose: provide CRUD operations for students and courses (“carreras”) via REST APIs consumed by the Angular UI.

##### File Structure Analysis
- Top-level monorepo with three folders:
- frontend-angular: Angular project (with SSR support files like server.ts and main.server.ts, proxy.conf.json for API routing).
- estudiantes-service: Express microservice for student entities (index.js, package.json, CORS enabled).
- carreras-service: Express microservice for course entities (same layout).
- No shared libraries—each microservice is self-contained.
- Proxy config in frontend-angular routes frontend calls to microservices in development.

##### Key Architectural Insights from README
- Each microservice exposes REST endpoints (CRUD + CORS).
- Frontend communicates with both services to display and modify data.
- No explicit database in the repo—assume each service interacts with its own datastore (in-memory or external DB).

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Client Layer
    Browser["Browser"]:::external

    subgraph "Client Layer"
        AngularUI["Angular UI\n(Server: :4200)"]:::frontend
        SSR["SSR Host\n(server.ts, main.server.ts)"]:::frontend
        Proxy["Proxy\n(proxy.conf.json)"]:::api
    end

    %% Backend Services
    subgraph "Backend Services"
        EstService["Estudiantes Service\n(:3001)"]:::backend
        CarrService["Carreras Service\n(:3002)"]:::backend
    end

    %% Data Layer
    subgraph "Data Layer"
        DBEst["MongoDB\nStudents DB"]:::db
        DBCarr["MongoDB\nCourses DB"]:::db
    end

    %% Connections
    Browser -->|HTTP/HTTPS| AngularUI
    AngularUI -->|SSR Render| SSR
    AngularUI -->|REST API Calls| Proxy
    Proxy -.->|/api/estudiantes| EstService
    Proxy -.->|/api/carreras| CarrService
    EstService -->|DB Driver| DBEst
    CarrService -->|DB Driver| DBCarr

    %% Click Events
    click AngularUI "https://github.com/nayelymosquera/registro-de-estudiantes/tree/main/frontend-angular/"
    click SSR "https://github.com/nayelymosquera/registro-de-estudiantes/blob/main/frontend-angular/src/server.ts"
    click Proxy "https://github.com/nayelymosquera/registro-de-estudiantes/blob/main/frontend-angular/proxy.conf.json"
    click EstService "https://github.com/nayelymosquera/registro-de-estudiantes/blob/main/estudiantes-service/index.js"
    click CarrService "https://github.com/nayelymosquera/registro-de-estudiantes/blob/main/carreras-service/index.js"

    %% Styles
    classDef external fill:#E0E0E0,stroke:#333,stroke-width:1px
    classDef frontend fill:#D6EAFE,stroke:#0366D6,stroke-width:2px
    classDef api fill:#F9E79F,stroke:#B7950B,stroke-dasharray:5 5,stroke-width:2px
    classDef backend fill:#A9DFBF,stroke:#229954,stroke-width:2px
    classDef db fill:#F5B7B1,stroke:#C0392B,stroke-width:2px
```
