Commit Graph

7 Commits

Author SHA1 Message Date
Paul Huliganga fa2cceddc3 [migration] Normalize schema to MVP target: split recipes into ingredients and steps tables, drop JSON columns, adjust tags, update migration docs. WARNING: Tests fail until API and tests are refactored for new structure. 2026-03-25 10:25:45 -04:00
Paul Huliganga c885381d3a docs(user-guide): add MVP user guide and mark task complete 2026-03-24 18:41:43 -04:00
Paul Huliganga ce839e3ce1 docs(api): add initial API documentation for all endpoints (MVP) 2026-03-24 18:06:35 -04:00
Paul Huliganga 853374f060 feat(devops): add docker-compose orchestration with nginx API proxy
- Created docker-compose.yml with backend and frontend services
- Backend: Node.js API on port 3000 with SQLite volume persistence
- Frontend: nginx on port 8080 with health checks and restart policies
- Configured nginx to proxy /api/* requests to backend service
- Updated frontend API client to use relative URLs (/api instead of http://localhost:3000/api)
- Added Vite dev server proxy for local development workflow
- Implemented health checks for both services with service dependency
- Created comprehensive documentation in docs/docker-compose.md
- Verified: docker-compose.yml syntax is valid YAML

Next step: Test local deployment (docker compose up)
2026-03-24 08:12:55 -04:00
Paul Huliganga 1504986d0b feat(docker): add frontend Dockerfile with nginx configuration
- Created multi-stage Dockerfile for frontend build and deployment
- Builder stage: npm ci, TypeScript compilation, Vite build
- Production stage: nginx Alpine serving static assets
- Added nginx.conf with SPA routing, gzip compression, security headers
- Created frontend/.dockerignore to optimize build context
- Added health check endpoint at /health for container orchestration
- Documented build strategy, optimization, and deployment in docs/docker-frontend.md
- Verified: npm build succeeds (Docker build pending availability)
2026-03-24 07:57:11 -04:00
Paul Huliganga 4bce1d3bf1 feat(devops): add backend Dockerfile with multi-stage build
- Created production-ready Dockerfile for Node.js 22 backend
- Implemented multi-stage build for optimized image size
- Added .dockerignore to exclude unnecessary files from build
- Included database migration on container startup
- Created docker-backend.md documentation
- Verified: npm build and npm test pass (34/34 tests)
2026-03-24 07:42:13 -04:00
Paul Huliganga 88acb93068 fix(deps): switch to sql.js to resolve Node v22 compatibility
- better-sqlite3 incompatible with Node.js v22.22.0 (V8 API changes)
- Switched to sql.js (pure JavaScript SQLite, zero native deps)
- Updated ARCHITECTURE.md to reflect new choice
- Added ADR-001 documenting decision rationale
- Enables autonomous development on WSL2/Node v22

Per agent-harness methodology: unblock environment issues pragmatically.
2026-03-24 00:00:59 -04:00