Skip to content

sam1code/vita-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

vitaAI - Comprehensive Health & Wellness Platform

vitaAI React Native TypeScript Node.js PostgreSQL

๐Ÿฅ Overview

vitaAI is an end-to-end health and wellness platform that combines cutting-edge AI technology with a mobile-first user experience. The platform enables users to track health metrics, manage wellness goals, get AI-powered recommendations, and connect with a supportive community.

Vision

Democratize personalized health insights through AI while maintaining privacy, accuracy, and user empowerment.

Core Value Proposition

  • ๐Ÿ“ฑ Easy-to-use cross-platform mobile app
  • ๐Ÿค– AI-powered AI bot to provide health-related assistance, TODO: FEATURE ADD ON: Photo to nutrition calculation
  • ๐Ÿ” Privacy-first secure data handling
  • ๐Ÿ‘ฅ Community-driven social wellness features
  • ๐Ÿ“Š Data-rich comprehensive health analytics

๐Ÿ“ฆ Project Structure

The vitaAI ecosystem consists of 5 core modules:

1. vitaAI - Mobile Application

React Native mobile app for iOS and Android with health tracking, goal management, and community features.

2. vitaAI-Backend - API Server

Express.js backend providing RESTful APIs for all platform functionality with PostgreSQL database.

3. internalRAG - Developer Support System

Retrieval-Augmented Generation system to support developers with documentation and code assistance.

  • Type: Developer support infrastructure
  • Tech: LangChain/LlamaIndex, Vector DB, LLMs
  • Status: In development
  • Purpose: Help developers find documentation, architecture patterns, and code examples
  • ๐Ÿ“– Read Full Documentation

4. estimation - ML Model Predictions

Machine learning module for health predictions, with focus on nutrition analysis from food plate images.

  • Type: ML/AI models
  • Tech: TensorFlow, Python (or TensorFlow.js)
  • Status: ๐Ÿ”„ Pending (awaiting nutrition vision model)
  • Primary Focus: Food image recognition โ†’ Nutrition prediction
  • ๐Ÿ“– Read Full Documentation

5. vitaAIDocs - API Documentation

Comprehensive API reference with Postman collection for developers.

  • Type: API documentation & collection
  • Contents: Postman collection, endpoint references, integration guides
  • Status: Expandable (more docs coming soon)
  • ๐Ÿ“– Read Full Documentation

๐Ÿš€ Quick Start Guide

Prerequisites

  • Node.js 18+ and npm/yarn
  • Git for version control
  • Docker (optional, for backend)
  • PostgreSQL 12+ (for backend)

Clone Repository

git clone https://github.com/sam1code/vita-ai.git
cd vita-ai

Setup Mobile App (vitaAI)

cd vitaAI
npm install
bundle install          # iOS CocoaPods
bundle exec pod install # Install iOS dependencies
npm start               # Start Metro bundler

# In another terminal
npm run android  # for Android
# or
npm run ios      # for iOS

Setup Backend Server (vitaAI-Backend)

cd vitaAI-Backend
npm install

# Create .env file with database and service credentials
cp .env.example .env
# Edit .env with your configurations

npm run prisma:migrate # Setup database
npm run dev            # Start development server

Access API Documentation

Open the Postman collection from vitaAIDocs/vita-ai.postman_collection.json in Postman to explore all available endpoints.


๐Ÿ“‹ Key Features

๐Ÿ‘ค User Management

  • Secure authentication (Firebase + Email/Password)
  • Google Sign-In integration
  • Profile customization
  • Privacy and security settings

๐Ÿฅ Health Tracking

  • Vital signs monitoring (Blood pressure, heart rate, weight, etc.)
  • Activity tracking integration (Steps, calories, exercise)
  • Sleep analysis and patterns
  • Nutrition logging and food database
  • Water intake tracking

๐ŸŽฏ Goal Management

  • Create personalized health goals
  • Track progress with visual analytics
  • Set reminders and notifications
  • Goal completion tracking
  • Personalized recommendations

๐Ÿค– AI-Powered Features

  • Health trend predictions
  • Personalized health recommendations
  • Nutrition analysis from food images (in development)
  • Anomaly detection in health data

๐Ÿ’ฌ Community & Social

  • Connect with other health-conscious users
  • Share achievements and progress
  • Community posts and discussions
  • Follow functionality
  • Mutual support features

๐Ÿ“Š Analytics & Insights

  • Comprehensive health dashboards
  • Trend visualization with charts
  • Weekly/monthly health summaries
  • Goal achievement statistics
  • Personal health records

๐Ÿ”” Smart Notifications

  • Medication reminders
  • Goal achievement alerts
  • Milestone celebrations
  • Community notifications
  • Personalized health tips

๐Ÿ—๏ธ System Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚           vitaAI Mobile App                     โ”‚
โ”‚    (React Native - iOS & Android)              โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
               โ”‚
               โ”‚ HTTPS REST API calls
               โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚      vitaAI Backend API Server                  โ”‚
โ”‚   (Express.js - Node.js TypeScript)            โ”‚
โ”‚  Routes: /v1/auth, /v1/users, /v1/goals, ..    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
               โ”‚
        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚      โ”‚      โ”‚
        โ–ผ      โ–ผ      โ–ผ
   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
   โ”‚ Firebase            โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
   โ”‚ โ€ข Auth              โ”‚  โ”‚ PostgreSQL โ”‚
   โ”‚ โ€ข Firestore         โ”‚  โ”‚ DB         โ”‚
   โ”‚ โ€ข Cloud Messaging   โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
   โ”‚ โ€ข Storage           โ”‚
   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
        โ”‚
        โ–ผ
   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
   โ”‚ AWS Services        โ”‚
   โ”‚ โ€ข S3 Storage        โ”‚
   โ”‚ โ€ข File Uploads      โ”‚
   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   ML Models (estimation module)                 โ”‚
โ”‚ โ€ข Nutrition Vision Model                       โ”‚
โ”‚ โ€ข Health Predictions                           โ”‚
โ”‚ โ€ข Anomaly Detection                            โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Developer Support (internalRAG)               โ”‚
โ”‚ โ€ข Documentation Retrieval                      โ”‚
โ”‚ โ€ข Code Assistance                              โ”‚
โ”‚ โ€ข Architecture Guidelines                      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ› ๏ธ Tech Stack Overview

Frontend (Mobile)

  • Framework: React Native 0.79.2
  • Language: TypeScript
  • Navigation: React Navigation
  • State: Redux/MobX (see src/store)
  • UI Components: React Native Kit, Linear Gradient
  • Health Integration: HealthKit (iOS), Health Connect (Android)
  • API Client: Axios

Backend

  • Framework: Express.js 5.1.0
  • Language: TypeScript
  • Runtime: Node.js 18+
  • Database: PostgreSQL 12+
  • ORM: Prisma 5.22.0
  • Authentication: Firebase Admin SDK
  • File Storage: AWS S3
  • Logging: Morgan
  • Containerization: Docker & Docker Compose

Authentication & Services

  • Auth: Firebase Authentication
  • Database: Firestore (real-time sync), PostgreSQL (primary DB)
  • Storage: AWS S3
  • File Uploads: Pre-signed URLs
  • Push Notifications: Firebase Cloud Messaging

ML & AI (Planned)

  • Vision: TensorFlow.js or Python TensorFlow
  • Embedding: LLM integrations for RAG
  • Vector DB: Pinecone/Weaviate (for internalRAG)

๐Ÿ“š Documentation Structure

Each module has comprehensive documentation:

Folder Documentation Purpose
vitaAI/ README.md Mobile app setup, development, architecture
vitaAI-Backend/ README.md API reference, database, deployment
internalRAG/ README.md Developer support, RAG setup, usage
estimation/ README.md ML models, nutrition prediction, algorithms
vitaAIDocs/ README.md API docs, Postman collection, examples

๐Ÿš€ Getting Started for Developers

1. Environment Setup

Clone the repo:

git clone https://github.com/sam1code/vita-ai.git
cd vita-ai

Install global tools:

npm install -g react-native-cli
npm install -g @react-native-community/cli-types

2. Backend Setup

cd vitaAI-Backend

# Install dependencies
npm install

# Setup environment
cp .env.example .env
# Edit .env with:
# - DATABASE_URL (PostgreSQL)
# - VFIREBASE_* (Firebase credentials)
# - AWS_S3_* (AWS S3 credentials)

# Initialize database
npm run prisma:generate
npm run prisma:migrate

# Start development server
npm run dev

Server will run on http://localhost:3000

3. Mobile App Setup

cd vitaAI

# Install dependencies
npm install

# iOS setup
bundle install
bundle exec pod install

# Start Metro bundler
npm start

# In another terminal, run on device/emulator
npm run android  # or npm run ios

4. Test API Endpoints

Import vitaAIDocs/vita-ai.postman_collection.json into Postman to test all endpoints.


๐Ÿ“– Development Workflow

Creating a New Feature

  1. Plan - Define feature requirements and API endpoints
  2. Backend API - Implement route, controller, database schema in vitaAI-Backend
  3. Database - Create Prisma migration: npm run prisma:migrate
  4. Mobile UI - Build screen and components in vitaAI
  5. Integration - Connect mobile to backend API
  6. Testing - Test on both Android and iOS
  7. Documentation - Update relevant README files
  8. Review - Create Pull Request for code review

Code Style & Standards

  • Language: TypeScript (strict mode)
  • Formatting: Prettier (see .prettierrc.js)
  • Linting: ESLint
  • Testing: Jest

Running Tests

Backend:

cd vitaAI-Backend
npm test

Mobile:

cd vitaAI
npm test

๐Ÿ”’ Security & Privacy

Authentication

  • Firebase handles user authentication securely
  • JWT tokens for API requests
  • Refresh token mechanism

Data Security

  • Environment variables for sensitive data (never commit .env)
  • HTTPS for all API communications
  • PostgreSQL with proper access controls
  • AWS S3 with signed URLs for file access

Privacy

  • User data encrypted at rest
  • GDPR-compliant data handling
  • User controls over data sharing
  • Community post privacy settings

Best Practices

  • Validate all user inputs
  • Rate limiting on sensitive endpoints
  • Error messages don't expose system details
  • Regular security audits

๐Ÿณ Deployment

Backend Deployment

Using Docker:

cd vitaAI-Backend
docker build -t vitaai-backend .
docker-compose up

Manual Deployment:

npm run build
npm install --production
npm start

For detailed deployment instructions, see vitaAI-Backend/README.Docker.md

Mobile App Deployment

iOS (App Store):

eas build --platform ios
eas submit --platform ios

Android (Google Play):

eas build --platform android
eas submit --platform android

๐Ÿ“Š Project Stats

  • Mobile Screens: 15+
  • API Endpoints: 40+
  • Database Models: 10+
  • Dependencies: 100+
  • Lines of Code: 20,000+

๐Ÿค Contributing

We welcome contributions! Please follow these guidelines:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/my-feature
  3. Commit changes: git commit -m 'Add my feature'
  4. Push to branch: git push origin feature/my-feature
  5. Create a Pull Request

Contributing Guidelines

  • Follow code style (ESLint, Prettier)
  • Add tests for new functionality
  • Update documentation
  • Write clear commit messages
  • Keep PRs focused on single features

Reporting Issues

Found a bug? Please open an issue with:

  • Clear description of the problem
  • Steps to reproduce
  • Expected vs actual behavior
  • Environment details (OS, app version, etc.)

๐Ÿ“ฑ Supported Platforms

Platform Version Status
iOS 12.0+ โœ… Supported
Android 7.0+ (API 24+) โœ… Supported
Web N/A ๐Ÿ”„ Future

๐Ÿ—‚๏ธ Important Files

vita-ai/
โ”œโ”€โ”€ Readme.md                          # This file
โ”œโ”€โ”€ vitaAI/                            # Mobile app
โ”‚   โ”œโ”€โ”€ src/                           # App source code
โ”‚   โ”œโ”€โ”€ android/                       # Android native code
โ”‚   โ”œโ”€โ”€ ios/                           # iOS native code
โ”‚   โ””โ”€โ”€ README.md                      # App documentation
โ”œโ”€โ”€ vitaAI-Backend/                    # Backend API
โ”‚   โ”œโ”€โ”€ src/                           # API source code
โ”‚   โ”œโ”€โ”€ prisma/                        # Database schema
โ”‚   โ”œโ”€โ”€ Dockerfile                     # Docker config
โ”‚   โ””โ”€โ”€ README.md                      # API documentation
โ”œโ”€โ”€ internalRAG/                       # Developer support
โ”‚   โ””โ”€โ”€ README.md                      # RAG documentation
โ”œโ”€โ”€ estimation/                        # ML models
โ”‚   โ””โ”€โ”€ README.md                      # Model documentation
โ”œโ”€โ”€ vitaAIDocs/                        # API docs
โ”‚   โ”œโ”€โ”€ vita-ai.postman_collection.json
โ”‚   โ””โ”€โ”€ README.md                      # API reference
โ””โ”€โ”€ .env.example                       # Environment template

๐Ÿ“ž Support & Resources

Documentation

External Resources

Community

  • GitHub Issues for bug reports and feature requests
  • GitHub Discussions for questions and ideas
  • Pull Requests for code contributions

Contact

  • ๐Ÿ“ง Email: [development team email]
  • ๐Ÿ’ฌ Slack: [community channel]
  • ๐Ÿ› Issues: GitHub Issues

๐Ÿ“ˆ Roadmap

Q2 2026

  • โœ… Complete backend API
  • โœ… Mobile app beta
  • ๐Ÿ”„ Internal RAG for developer support
  • ๐Ÿ”„ Nutrition prediction model

Q3 2026

  • ML-powered health insights
  • Advanced analytics dashboard
  • Community features enhancement
  • Dark mode support

Q4 2026

  • Web application
  • Advanced AI recommendations
  • Integration with wearables
  • Multi-language support

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿ‘จโ€๐Ÿ’ป Team

vitaAI Development Team

  • Project Lead: [Name]
  • Mobile Developer: [Contributors]
  • Backend Engineer: [Contributors]
  • ML Engineer: [Contributors]

๐ŸŽฏ Future Vision

vitaAI aims to become the leading AI-powered health platform by:

  1. Accuracy: Providing accurate health predictions through advanced ML
  2. Accessibility: Making health insights available to everyone
  3. Community: Building a supportive health-conscious community
  4. Innovation: Continuously integrating latest health technologies
  5. Privacy: Maintaining highest standards of user data privacy

๐Ÿ“Š Quick Links


Last Updated: April 3, 2026
Version: 1.0.0
Status: Active Development


โญ Show Your Support

If you find vitaAI helpful, please give us a star on GitHub! Your support means a lot to us.

# Clone and explore
git clone https://github.com/sam1code/vita-ai.git
cd vita-ai

# Check out the modules
ls -la

# Read module documentation
cat vitaAI/README.md
cat vitaAI-Backend/README.md

Made with โค๏ธ by the vitaAI Team

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors