React + TypeScript application for AI-powered food management and recipe generation.
- React 18 + TypeScript
- Vite
- Tailwind CSS + Shadcn/ui
- Zustand (state management)
- Axios (API client)
# Install dependencies
bun install
# Development server
bun run dev
# Build for production
bun run build
# Preview production build
bun run preview
# Format code
bun run formatCreate .env file:
VITE_API_BASE_URL=https://api.aifoodapp.sitesrc/
├── components/ # React components
├── pages/ # Page components
├── hooks/ # Custom React hooks
├── lib/ # Utilities & API client
├── services/ # API service layer
├── store/ # Zustand stores
├── utils/ # Shared utility functions
│ ├── dateUtils.ts # Date formatting and expiration logic
│ └── errorUtils.ts # Error handling utilities
└── styles/ # Global styles
bun run dev- Start development server on port 8082bun run build- Build for productionbun run preview- Preview production buildbun run lint- Run ESLintbun run format- Format code with Prettierbun run format:check- Check code formatting
- API Documentation - Backend API reference
- Refactoring Summary - Recent code improvements and refactoring changes
We've recently completed a comprehensive refactoring to improve code quality, modularity, and maintainability:
✅ Reduced code duplication by 7.4% - Eliminated ~100 lines of duplicate code ✅ Improved type safety - Fixed 7 TypeScript 'any' type issues ✅ New utility modules - Created reusable date and error handling utilities ✅ Cleaner components - Simplified complex logic and removed unnecessary code ✅ Better developer experience - Improved IDE support and code navigation
See REFACTORING_SUMMARY.md for detailed information.
- OAuth2 authentication (Google)
- Food inventory management
- AI recipe generation
- Nutritional analysis
- Responsive design