# andres685/microservicios-flask-y-vue architecture

> Architecture diagram of the GitHub repository andres685/microservicios-flask-y-vue, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/andres685/microservicios-flask-y-vue
- Repository: https://github.com/andres685/microservicios-flask-y-vue

## Overview

##### Project type and purpose
- This is a full-stack demonstration app that “simulates the organization and functioning of microservices.”
- Backend logic is written in Flask (Python); frontend UI is a Vue.js single-page application.

##### File structure
- Top-level:
- backend/ – Flask app (app.py, models.py, requirements) plus static CSS and Jinja templates (login, register, index, agregar).
- frontend/ – Vue CLI project (src/, public/, router/, configuration files, package.json).
- node_modules/, package.json at root – dependencies for the Vue build.
- No separate service folders, so the “microservices” are logical groupings inside one Flask app.
- No Docker or orchestration files—deploy as two containers or two processes.

##### README for additional insights
- The README confirms it’s a “simulation” of microservices.

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Client Side"
        Browser["Web Browser"]:::frontend
        SPA["Vue SPA"]:::frontend
        Router["Vue Router"]:::frontend
    end

    subgraph "Frontend Server"
        StaticHost["Static Host / Dev Server"]:::frontend
    end

    subgraph "Backend API"
        API["Flask API"]:::backend

        subgraph "Auth Service"
            Auth["AuthService"]:::backend
        end

        subgraph "Catalog Service"
            Catalog["CatalogService"]:::backend
        end

        subgraph "Watchlist Service"
            Watchlist["WatchlistService"]:::backend
        end

        Template["Legacy Templates & Static Assets"]:::backend
    end

    DB["Data Store"]:::database

    Browser -->|"HTTP(S)"| StaticHost
    StaticHost -->|"Serves index.html & JS/CSS"| SPA
    Router -->|"Client Routing"| SPA
    SPA -->|"REST API Calls"| API
    API -->|"routes"/AuthService| Auth
    API -->|"routes"/CatalogService| Catalog
    API -->|"routes"/WatchlistService| Watchlist
    API -->|"serves templates"| Template
    Auth -->|"SQL/ORM"| DB
    Catalog -->|"SQL/ORM"| DB
    Watchlist -->|"SQL/ORM"| DB

    click Auth "https://github.com/andres685/microservicios-flask-y-vue/blob/master/backend/app.py"
    click Auth "https://github.com/andres685/microservicios-flask-y-vue/blob/master/backend/templates/login.html"
    click Auth "https://github.com/andres685/microservicios-flask-y-vue/blob/master/backend/templates/register.html"

    click Catalog "https://github.com/andres685/microservicios-flask-y-vue/blob/master/backend/app.py"
    click Catalog "https://github.com/andres685/microservicios-flask-y-vue/blob/master/frontend/src/components/CatalogoPro.vue"

    click Watchlist "https://github.com/andres685/microservicios-flask-y-vue/blob/master/backend/app.py"
    click Watchlist "https://github.com/andres685/microservicios-flask-y-vue/blob/master/backend/templates/agregar.html"
    click Watchlist "https://github.com/andres685/microservicios-flask-y-vue/blob/master/frontend/src/components/PorVer.vue"

    click API "https://github.com/andres685/microservicios-flask-y-vue/blob/master/backend/app.py"
    click API "https://github.com/andres685/microservicios-flask-y-vue/blob/master/backend/models.py"
    click API "https://github.com/andres685/microservicios-flask-y-vue/blob/master/backend/requerimientos.txt"

    click DB "https://github.com/andres685/microservicios-flask-y-vue/blob/master/backend/models.py"

    click SPA "https://github.com/andres685/microservicios-flask-y-vue/blob/master/frontend/src/App.vue"
    click SPA "https://github.com/andres685/microservicios-flask-y-vue/blob/master/frontend/src/main.js"
    click SPA "https://github.com/andres685/microservicios-flask-y-vue/blob/master/frontend/src/assets/style.css"

    click Router "https://github.com/andres685/microservicios-flask-y-vue/blob/master/frontend/src/router/index.js"

    click StaticHost "https://github.com/andres685/microservicios-flask-y-vue/blob/master/frontend/public/index.html"
    click StaticHost "https://github.com/andres685/microservicios-flask-y-vue/blob/master/frontend/package.json"
    click StaticHost "https://github.com/andres685/microservicios-flask-y-vue/blob/master/frontend/vue.config.js"

    click Template "https://github.com/andres685/microservicios-flask-y-vue/blob/master/backend/static/estilos.css"
    click Template "https://github.com/andres685/microservicios-flask-y-vue/blob/master/backend/templates/index.html"

    classDef frontend fill:#cce5ff,stroke:#004085,color:#004085
    classDef backend fill:#d4edda,stroke:#155724,color:#155724
    classDef database fill:#fff3cd,stroke:#856404,color:#856404
```
