https://github.com/praneeth-katuri/plan-your-diet
AI based full-stack web app for personalized diet planning, nutrition tracking, and healthy lifestyle management.
https://github.com/praneeth-katuri/plan-your-diet
expressjs nodejs openai postgresql prisma-orm reactjs
Last synced: 12 months ago
JSON representation
AI based full-stack web app for personalized diet planning, nutrition tracking, and healthy lifestyle management.
- Host: GitHub
- URL: https://github.com/praneeth-katuri/plan-your-diet
- Owner: praneeth-katuri
- License: mit
- Created: 2025-05-22T11:18:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-22T17:01:23.000Z (12 months ago)
- Last Synced: 2025-06-22T17:37:12.996Z (12 months ago)
- Topics: expressjs, nodejs, openai, postgresql, prisma-orm, reactjs
- Language: JavaScript
- Homepage: https://planyourdiet.vercel.app
- Size: 11 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PlanYourDiet
**PlanYourDiet** is a full-stack AI-driven diet planning application that allows users to receive personalized weekly diet plans based on their goals, preferences, and allergies.
## Preview
### Home Page and Food Tips
### Diet Plan and Edit Profile
### Login and Register
---
## Tech Stack
- **Frontend**: React.js, Tailwind CSS, React Hook Form, Zod, axios
- **Backend**: Node.js, Express.js, Prisma ORM
- **Database**: PostgreSQL
- **Authentication**: JWT (access + refresh tokens)
- **AI Integration**: Together.ai (LLaMA 3 70B) for meal plan generation
---
## Features
- User Registration & Login
- Profile Setup: age, weight, height, diet type, allergies, etc.
- AI-generated 7-day weekly meal plans (macros + calories)
- View meals categorized by day and time (breakfast/lunch/etc.)
- Regenerate plans when needed
- JWT Authentication with refresh token auto-renewal, setup using axios interceptors and react context API
- responsive UI
---
## Setup Instructions
### 1. Clone the Repository
```bash
git clone --depth 1 https://github.com/praneeth-katuri/plan-your-diet.git
cd plan-your-diet
```
### 2. Setup Backend
```bash
cd server
npm install
cp .env.example .env # add your secrets into .env (IMPORTANT)
# Migrate DB
npx prisma migrate dev
# Start server
npm run dev
```
### 3. Setup Frontend
```bash
cd ../client
npm install
npm run dev
```
---
## Planned Improvements
- PDF export for diet plans
- Dark mode support
- Nutrition label suggestions
- AI chatbot for food alternatives
---
## License
MIT © 2025 [Praneeth Katuri](LICENSE)