A web-based diet planner designed to help users track their meals, monitor their nutrition intake, and achieve their fitness goals. Users can plan their meals for the week, track their daily calorie and protein intake, and visualize progress through easy-to-use dashboards.
- Dashboard: See your daily nutrition goals, progress, and meal summary at a glance.
- Meal Planner: Plan your meals for the week and set daily calorie/protein targets.
- Nutrition Tracker: Log meals, track calories and macros, and get instant feedback using real food data from trusted APIs.
- Frontend: React (Vite), React Router, Supabase JS, HTML/CSS
- Backend: Node.js, Express, Supabase JS
- Database & Auth: Supabase
- APIs: Open Food Facts, USDA FoodData Central
Diet-Planner/
├── backend/ # Node.js/Express API and Supabase integration
│ ├── middleware/
│ ├── routes/
│ ├── index.js
│ └── ...
├── frontend/ # React app (Vite)
│ ├── src/
│ │ ├── assets/
│ │ ├── components/
│ │ ├── lib/
│ │ ├── pages/
│ │ └── services/
│ ├── App.jsx
│ ├── index.html
│ └── ...
├── .gitignore
├── README.md
└── ...
backend/contains all server-side code and API routes.frontend/contains all client-side code and UI components.
-
Clone the repo
git clone https://github.com/your-username/Diet-Planner.git -
Backend
cd backend npm install npm start -
Frontend
cd frontend npm install npm run dev -
Open your browser at http://localhost:5173 (or the port shown in your terminal).
To get started:
- Fork this repository.
- Clone your fork:
git clone https://github.com/your-username/Diet-Planner.git - Create a new branch for your feature or bugfix:
git checkout -b my-feature - Make your changes and commit them:
git commit -m "Add my feature" - Push to your fork:
git push origin my-feature - Open a Pull Request describing your changes.