How arquisoft/wichat_es1a works
Project type and purpose
• This is a full-stack, containerized, microservice-based web application (“wichat_es1a”) composed of a React frontend and five back-end services (user, questions, LLM, multiplayer, gateway), all orchestrated via Docker Compose. It implements an API Gateway pattern, each service has a single responsibility, and it uses MongoDB and external APIs (Wikidata and an LLM provider).
File structure
• Top-level services (each in its own folder with Dockerfile, package.json, tests):
• gatewayservice (proxies public requests to internal services, exposes OpenAPI specs)
• users (handles user registration and authentication, uses Mongoose/MongoDB)
• questions (generates questions via Wikidata, TypeScript + Express)
• llmservice (wraps calls to an external LLM provider, React public folder for any simple UI)
• multiplayer (real-time game coordination via WebSockets)
• webapp (React single-page app served to users)
• Shared resources and infra files: docker-compose.yml, .env templates, CI workflows, monitoring configs (Prometheus + Grafana under gatewayservice/monitoring), SonarQube, CodeScene, ADRs, Arc42 docs under docs/.
README for additional insights
• Describes components, their interactions, deployment via Docker Compose, LLM API configuration, Swagger API docs for users and questions, CI/CD via GitHub Actions, and deployment over SSH.
• Mentions MongoDB shared by “user and auth” (in practice it’s the users service doing both roles).