- 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) |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .dockerignore | ||
| .gitignore | ||
| Dockerfile | ||
| README.md | ||
| eslint.config.js | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| tailwind.config.js | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
README.md
Recipe Manager - Frontend
React + TypeScript frontend for the Recipe Manager application.
Tech Stack
- React 19 - UI framework
- TypeScript - Type safety
- Vite - Build tool and dev server
- React Router 7 - Client-side routing
Development
# Install dependencies
npm install
# Start dev server (http://localhost:5173)
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview
# Lint code
npm run lint
Project Structure
src/
├── components/ # Reusable UI components
├── hooks/ # Custom React hooks
├── pages/ # Route pages
├── services/ # API client and business logic
├── types/ # TypeScript interfaces
├── App.tsx # Root component
└── main.tsx # Application entry point
Next Steps
- Configure Tailwind CSS
- Set up React Router
- Create recipe list page
- Create recipe detail/edit page
- Implement cook mode UI
Architecture
See /ARCHITECTURE.md for full system architecture and patterns.