A modern, intuitive calorie and macro tracking application built with Vite and TypeScript. Track your daily nutrition goals with ease and precision.
-
Smart Meal Tracking
- Log individual meals and track daily calorie intake
- Monitor macronutrients (protein, carbs, fat)
- Create and save custom meal combinations
- Beautiful progress visualization
-
Ingredient Management
- Add custom ingredients with nutritional information
- Create a personal ingredient database
- Automatic macro calculations
- Easy ingredient search and selection
-
Meal Combinations
- Create and save meal combinations
- Reuse favorite meal combinations
- Automatic nutritional calculations
- Flexible ingredient quantities
-
User Experience
- Clean, modern UI with dark mode support
- Responsive design for all devices
- Intuitive navigation
- Real-time progress tracking
-
Frontend
- Vite
- TypeScript
- Tailwind CSS
- Shadcn UI Components
- Lucide Icons
-
Backend
- Vercel Postgres
- PostgreSQL for data management
- RESTful API endpoints
-
Clone the repository
git clone https://github.com/yourusername/calorie-tracker.git cd calorie-tracker -
Install dependencies
npm install
-
Set up environment variables
DATABASE_URL=your_database_url
-
Run the development server
npm run dev
-
Open http://localhost:3000 in your browser
calorie-tracker/
├── api/ # API endpoints
├── src/
│ ├── components/ # React components
│ ├── lib/ # Utility functions and data handling
│ ├── pages/ # Next.js pages
│ └── styles/ # Global styles
├── public/ # Static assets
└── package.json # Project dependencies
The application uses several configuration files:
settings.config.ts- Default nutritional goalstailwind.config.js- Tailwind CSS configurationtsconfig.json- TypeScript configuration
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.