You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Epic: Web UI (1/4) - Backend API & Docker Compose Setup #53
This is the first of four issues to build a comprehensive web UI for GitFix. The goal of this epic is to create a secure, real-time dashboard for monitoring and managing the system.
This Issue (1/4): Backend API & Docker Compose Setup
This task focuses on creating the foundational backend service for the UI and containerizing the entire application stack for easy development and deployment.
High-Level Goal
Create a new Express.js server to act as the API for the frontend.
Define all the necessary API endpoints to provide data for the dashboard.
Create a docker-compose.yml file to run the entire GitFix system (Redis, Daemon, Worker, API) with a single command.
Implementation Steps
Create the Dashboard API Service:
Create a new directory: packages/dashboard.
Initialize a Node.js project with express.
Implement the API endpoints defined in the feature plan:
GET /api/status: Provides health status for all system components.
GET /api/queue/stats: Returns job counts from BullMQ.
GET /api/activity: Fetches the latest events from the Redis activity log.
GET /api/metrics: Returns high-level performance metrics.
GET /api/task/:taskId/history: Fetches persisted logs for completed tasks.
Create docker-compose.yml:
Define services for redis, daemon, worker, and the new dashboard-api.
Use the existing Dockerfile.claude and create new simple Dockerfiles for the daemon, worker, and API if necessary.
Ensure all services are on the same network and can communicate.
Mount volumes for .env configuration and Git storage paths.
Update Worker/Daemon for Heartbeats:
Modify daemon.js and worker.js to write a periodic heartbeat to Redis (e.g., redis.set('system:status:daemon', Date.now(), 'EX', 90)). This allows the API to monitor their status.
Activity
integry commentedon Sep 12, 2025
Suggested Implementation:
docker-compose.ymlThis Docker Compose file provides a complete, one-command setup for the entire GitFix application, including the new dashboard API.
Reasoning:
docker-compose upto get the entire system running.redis,dashboard-api).Note: This assumes a generic
Dockerfile.nodefor the Node.js services. A simple one can be created for this purpose.propr-dev commentedon Sep 12, 2025
🤖 AI processing has started for this issue using claude-opus-4-20250514 model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
claude-opus-4-20250514ai-fix/53-epic-web-ui-1-4-backend-a-20250913-0020-claude-opus-4-20250514-4b9mainissue-53-20250913-0020-claude-opus-4-20250514-4b9fix(ai): Resolve issue #53 - Epic: Web UI (1/4) - Backend API & Docke…
Merge pull request #57 from integry/ai-fix/53-epic-web-ui-1-4-backend…