How benatbarrueta/tfg works
Project type and purpose
• This is a full-stack, containerized microservices application.
• Frontend: A React single-page app built under web/ and served via nginx.
• Backend: Two Python microservices (microservicioAuth, microservicioConsultas) plus a lightweight “db” microservice (ecotrackdb) that exposes the SQLite database.
• Orchestration & deployment: Docker and docker-compose at the root.
File structure
• Top-level files:
• docker-compose.yml: brings up nginx (serving the web UI) and the three microservice containers.
• ecotrackdb/: Dockerfile, SQLite file, db.py — the persistence layer.
• microservicioAuth/: Dockerfile + main.py — handles authentication flows (token issuance, callbacks).
• microservicioConsultas/: Dockerfile + main.py — handles data queries.
• web/: React code, nginx.conf, Dockerfile, static assets under public/ (Leaflet map), source under src/.
README for additional insights
• The README focuses on how to install Docker, set up SSH keys, clone the repo, and run docker-compose for nginx and the project.
Key reminders
• Be detailed: include each service as a separate component.
• Docker-compose services and their interactions.
• Keep labels concise but informative (e.g., “Auth Service (Python/Flask)”).