Skip to content

Personalized nutrition and diet companion app that generates AI-powered meal plans based on your health goals, preferences, and restrictions. Built with React, Node.js, and MongoDB.

License

Notifications You must be signed in to change notification settings

AbhishekR03/NutriTrack-Personalized-Diet-Companion

Repository files navigation

NutriTrack

Netlify Status

Personalized nutrition and diet companion app that generates AI-powered meal plans based on your health goals, preferences, and restrictions.


🚀 Live Demo


📝 Features

  • Personalized meal and diet plans using Gemini AI
  • User authentication (email/password, Google OAuth)
  • Cuisine and dietary preference selection
  • Macronutrient and calorie breakdown
  • Shopping list generator
  • Responsive dashboard UI

🛠️ Tech Stack

  • Frontend: React, Redux, Axios, Netlify
  • Backend: Node.js, Express, MongoDB Atlas, Render
  • AI: Gemini API

⚙️ Setup Instructions

1. Clone the repository

git clone https://github.com/yourusername/nutritrack.git
cd nutritrack

2. Install dependencies

  • For frontend:
    cd frontend
    npm install
  • For backend:
    cd backend
    npm install

3. Environment Variables

  • Frontend: Create a .env file in /frontend:
    REACT_APP_API_URL=https://personalized-diet-companion.onrender.com/api
    REACT_APP_GOOGLE_CLIENT_ID=your_google_client_id
  • Backend: Create a .env file in /backend:
    MONGO_URI=your_mongodb_atlas_uri
    JWT_SECRET=your_jwt_secret
    GEMINI_API_KEY=your_gemini_api_key
    GOOGLE_CLIENT_ID=your_google_client_id
    GOOGLE_CLIENT_SECRET=your_google_client_secret
    GOOGLE_CALLBACK_URL=your_google_callback_url
    EMAIL=your_email
    GOOGLE_CLIENT_ID_GMAIL=your_gmail_client_id
    GOOGLE_CLIENT_SECRET_GMAIL=your_gmail_client_secret
    GOOGLE_REFRESH_TOKEN=your_gmail_refresh_token

4. Run Locally

  • Frontend:
    cd frontend
    npm start
  • Backend:
    cd backend
    npm start

🌐 Deployment


📄 License

This project is licensed under the MIT License.


🙌 Acknowledgements

About

Personalized nutrition and diet companion app that generates AI-powered meal plans based on your health goals, preferences, and restrictions. Built with React, Node.js, and MongoDB.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published