Skip to content

shriyaaditya/Femora

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

22 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🩺 Femora Health App

Professional Breast Health Monitoring & AI-Powered Analysis

CI/CD TypeScript React Native FastAPI License

Demo

WhatsApp.Video.2025-12-05.at.16.36.24.mp4

πŸš€ Overview

Femora is a comprehensive breast health monitoring application that combines mobile technology with AI-powered analysis to provide early detection and preventive care. Built with enterprise-grade architecture, it offers:

  • πŸ”¬ AI-Powered Analysis: Advanced image processing and machine learning
  • πŸ“± Cross-Platform Mobile App: React Native with Expo for iOS and Android
  • 🌐 Scalable Backend: FastAPI-based microservices architecture
  • πŸ”’ HIPAA Compliant: Enterprise-grade security and privacy
  • πŸ“Š Real-time Monitoring: Comprehensive health tracking and analytics

✨ Features

Core Functionality

  • Breast Scan Analysis: AI-powered image processing and risk assessment
  • Health Questionnaire: Comprehensive risk factor evaluation
  • Appointment Management: Integrated calendar and scheduling system
  • Progress Tracking: Historical data analysis and trend monitoring
  • Offline Support: Full functionality without internet connection

Technical Features

  • TypeScript: Full type safety and better development experience
  • Testing: Comprehensive test coverage with Jest and React Testing Library
  • CI/CD: Automated testing, building, and deployment pipeline
  • Monitoring: Production-ready error tracking and performance monitoring
  • Security: End-to-end encryption and secure data handling

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Mobile App    β”‚    β”‚   Backend API   β”‚    β”‚   AI Pipeline   β”‚
β”‚  (React Native) │◄──►│   (FastAPI)     │◄──►│  (Python/ML)   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚                       β”‚                       β”‚
         β”‚                       β”‚                       β”‚
         β–Ό                       β–Ό                       β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Local Storage  β”‚    β”‚   PostgreSQL    β”‚    β”‚   Google Cloud  β”‚
β”‚ (AsyncStorage)  β”‚    β”‚   Database      β”‚    β”‚   Storage       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸš€ Quick Start

Prerequisites

  • Node.js 18+ and npm
  • Python 3.11+
  • Expo CLI
  • Android Studio / Xcode (for mobile development)

Installation

  1. Clone the repository

    git clone https://github.com/your-org/femora.git
    cd femora
  2. Install frontend dependencies

    npm install
  3. Install backend dependencies

    cd backend
    pip install -r requirements.txt
    cd ..
  4. Set up environment variables

    cp .env.example .env
    # Edit .env with your configuration
  5. Start the development servers

    # Terminal 1: Start backend
    npm run start:backend
    
    # Terminal 2: Start frontend
    npm start

πŸ“± Mobile App Development

Available Scripts

# Development
npm start                    # Start Expo development server
npm run android            # Run on Android device/emulator
npm run ios                # Run on iOS device/simulator
npm run web                # Run web version

# Quality Assurance
npm run lint               # Run ESLint
npm run lint:fix           # Fix ESLint issues
npm run format             # Format code with Prettier
npm run type-check         # TypeScript type checking
npm test                   # Run tests
npm run test:coverage      # Run tests with coverage

# Building
npm run prebuild           # Prepare for native build
npm run build:android      # Build Android APK
npm run build:ios          # Build iOS app

Project Structure

components/          # Reusable UI components
contexts/           # React Context providers
services/           # API and business logic services
types/              # TypeScript type definitions
utils/              # Utility functions
assets/             # Images, fonts, and static files

🌐 Backend Development

Available Scripts

cd backend

# Development
python main.py              # Start development server
uvicorn main:app --reload   # Start with auto-reload

# Quality Assurance
black .                     # Code formatting
flake8 .                    # Linting
mypy .                      # Type checking
pytest                      # Run tests
pytest --cov=.             # Run tests with coverage

API Documentation

  • Swagger UI: http://localhost:8000/docs
  • ReDoc: http://localhost:8000/redoc
  • Health Check: http://localhost:8000/health

πŸ§ͺ Testing

Frontend Testing

npm test                    # Run all tests
npm run test:watch         # Run tests in watch mode
npm run test:coverage      # Generate coverage report

Backend Testing

cd backend
pytest                     # Run all tests
pytest --cov=.            # Run with coverage
pytest -v                 # Verbose output

πŸ”’ Security Features

  • Data Encryption: AES-256 encryption for sensitive data
  • Secure Storage: Platform-specific secure storage (Keychain/Keystore)
  • API Security: JWT authentication and rate limiting
  • HIPAA Compliance: Healthcare data protection standards
  • Privacy Controls: User-configurable data sharing preferences

πŸ“Š Monitoring & Analytics

  • Error Tracking: Sentry integration for crash reporting
  • Performance Monitoring: Real-time performance metrics
  • User Analytics: Anonymous usage statistics and engagement metrics
  • Health Checks: Automated system health monitoring

πŸš€ Deployment

Production Deployment

# Build production versions
npm run build:android
npm run build:ios

# Deploy backend
cd backend
docker build -t femora-backend .
docker run -p 8000:8000 femora-backend

CI/CD Pipeline

The project includes a comprehensive GitHub Actions workflow that:

  • Runs automated tests
  • Performs code quality checks
  • Scans for security vulnerabilities
  • Builds and deploys automatically
  • Monitors performance

See PRODUCTION_DEPLOYMENT.md for detailed deployment instructions.

🀝 Contributing

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

Development Guidelines

  • Follow TypeScript best practices
  • Write comprehensive tests
  • Maintain code coverage above 70%
  • Follow the established code style
  • Update documentation as needed

πŸ“„ License

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

πŸ†˜ Support

πŸ™ Acknowledgments

  • Expo Team: For the excellent React Native development platform
  • FastAPI Community: For the high-performance web framework
  • Medical Professionals: For domain expertise and validation
  • Open Source Contributors: For the amazing tools and libraries

Built with ❀️ for better breast health outcomes

This application is for educational and informational purposes only and should not replace professional medical advice.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors