Repository navigation
FEAT: Issue #3 — API Endpoints + CI/CD Infrastructure - #10
Merged
Merged
Conversation
**API Endpoints (Issue #3)** - Implemented 9 REST endpoints for intents, proposals, execution, leaderboard - Request/response types with validation - Real-time WebSocket broadcasting for all state changes - Proper HTTP status codes and error handling **Infrastructure** - GitHub Actions CI/CD pipeline: test → lint → build - Runs go test -race with PostgreSQL + Redis services - golangci-lint checks for code quality - Builds static binary, retains artifacts 5 days - golangci-yml: linter configuration (used by CI and local 'make lint') - Dockerfile: production image (multi-stage Alpine build, ~50MB) - Used for containerizing the server for prod deployment - Separate from docker-compose which is dev-only (postgres + redis) - .air.toml: live reload config for development - Makefile: 8 commands for common tasks - Comprehensive README with API examples **Testing** - All endpoints tested and working: - POST /api/v1/intents creates intent ✓ - GET /api/v1/intents/{id} fetches intent ✓ - GET /api/v1/leaderboard returns rankings ✓ **Why two Docker configs:** - docker-compose.yml: LOCAL dev (PostgreSQL + Redis only, no app) - Dockerfile: PRODUCTION app (compiled Go binary in Alpine container) In prod, you'd use one docker-compose (or K8s) that orchestrates both the Dockerfile-packaged backend AND the postgres/redis services.
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
API Endpoints (Issue #3)
Infrastructure
Testing
Why two Docker configs:
In prod, you'd use one docker-compose (or K8s) that orchestrates both the Dockerfile-packaged backend AND the postgres/redis services.
close #3