Skip to content

gyash1512/NutriGuide_ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NutriGuide AI

Vercel Deployment

NutriGuide AI is an intelligent nutrition assistant designed to provide personalized dietary guidance. It leverages the power of a powerful AI model to deliver meal plans, workout routines, and health summaries tailored to your unique medical data and preferences.

Live Demo: nutriguideai.vercel.app

Key Features

  • AI-Powered Chatbot: Get instant answers to your nutrition and fitness questions with our intelligent, streaming chatbot.
  • Personalized Diet Plans: Receive custom 7-day diet plans based on your medical data, location, and dietary preferences.
  • Custom Workout Plans: Get personalized 7-day workout plans that take into account your fitness level, goals, and medical history.
  • AI Health Summary: Get a comprehensive, AI-generated summary of your health based on your medical records.
  • Secure Data Management: All your data is securely stored in a unified MongoDB database.

Architecture

Frontend

The frontend is a modern, responsive single-page application built with React and Vite. For more details, see the frontend README.

Backend

The backend is a robust Node.js application built with Express. It uses MongoDB for data storage and the Google Vertex AI SDK to interact with the AI model. For more details, see the backend README.

System Architecture Diagram

graph TD
    A[User] -->|Interacts with| B(React Frontend);
    B -->|API Calls| C(Node.js Backend);
    C -->|Queries| D(MongoDB);
    C -->|Prompts| E(AI API);
    E -->|Responses| C;
    D -->|Data| C;
Loading

Database Schema

erDiagram
    User {
        string name
        string email
        string password
        date dob
        number weight
        number height
        string gender
    }

    MedicalData {
        string email
        object complete_blood_count
        object lipid_panel
        object liver_function
        object kidney_function
        object blood_sugar
        object thyroid_function
        object vitamin_levels
        object inflammatory_markers
        object coagulation_tests
        object cancer_markers
        string ai_health_summary
    }

    MealPlan {
        string email
        string plan
    }

    WorkoutPlan {
        string email
        string plan
    }

    User ||--o{ MedicalData : "has"
    User ||--o{ MealPlan : "has"
    User ||--o{ WorkoutPlan : "has"
Loading

Deployment

The application can be configured for continuous deployment to Azure Web App using GitHub Actions. The workflow can be defined in .github/workflows/main_nutriback.yml.

About

NutriGuide AI is an intelligent nutrition assistant that provides personalized diet and workout plans based on your medical data and preferences. It features an AI-powered chatbot for instant guidance and is built with a React frontend and a Node.js backend, all powered by a powerful AI model.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages