# M4: Setup Developer Environment - Scoring Rubric ## Acceptance Criteria Scoring Table | Score | Criteria | |-------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------| | 0 | Agent failed to implement acceptance criteria:
- No docker-compose.yml or incomplete
- Missing both frontend and backend services
- No environment configuration
- Commands don't work at all | | 1 | Agent partially implemented acceptance criteria that builds successfully:
- Basic docker-compose with one service only
- Missing volume configuration
- .env.example or .env missing
- Makefile incomplete | | 2 | Agent fully implemented acceptance criteria that builds successfully:
- docker-compose.yml configures backend AND frontend services
- Port mappings for both services (3000, 8000)
- Docker network defined for inter-service communication- dev command (up -d --build)
- stop command (down)
- restart command (down then up -d)
- test command running both unit and E2E tests- Cannot build any service - **1 pt**: docker-compose.yml exists but only defines one service
- Other service referenced but not built - **2 pts**: Both backend and frontend services defined with correct build contexts
- Port mappings configured (3000, 8000)
- Networks section present with bridge driver - **3 pts**: Service dependencies configured correctly (frontend depends on backend)
- Volume configuration for database persistence - **4 pts**: Full service orchestration with restart policies and health checks ### Environment Configuration (Max 3 points) - **0 pts**: No .env or .env.example files
- Hardcoded credentials in source code - **1 pt**: Only .env file exists but no documentation
- Variables not clearly explained - **2 pts**: Both .env and .env.example present with all required variables
- Clear default values for development - **3 pts**: Comprehensive documentation table for each environment variable- Manual docker compose required for everything - **1 pt**: Basic stop command only
- No dev or restart automation - **2 pts**: dev, stop, and restart commands functional
- Uses docker compose correctly - **3 pts**: Backend-start and frontend-start individual service commands
- build command available - **4 pts**: test command runs both frontend and backend tests- No docker security configuration - **1 pt**: Basic .gitignore but doesn't exclude all sensitive files
- Volumes not properly configured - **2 pts**: .gitignore excludes .env, *.local, data/ directory
- Proper volume mounting for SQLite - **3 pts**: All security best practices followed- Missing docker setup instructions - **1 pt**: Basic README mentions docker-compose exists
- No quick start guide - **2 pts**: README documents all required prerequisites (Docker, Node.js)
- Port mappings and service descriptions included - **3 pts**: Complete troubleshooting guide with common issues and solutions
- Network configuration explained ### Service Communication (Max 2 points) - **0 pts**: Services cannot communicate
- Different network configurations or missing networks - **1 pt**: Basic networking but CORS or API calls fail
- Services on separate isolated networks - **2 pts**: Docker bridge network properly configured
- Inter-service communication verified via health endpoints ### Build Optimization (Max 3 points) - **0 pts**: docker-compose.yml lacks build optimizations
- Dockerfiles include unnecessary files - **1 pt**: Basic multi-stage builds missing
- Large images (>500MB for simple apps) - **2 pts**: Backend uses slim Python image with no-cache pip install