Skip to content

coolport/leafrx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

159 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LeafRx

LeafRx is a mobile app that helps users monitor plant health using AI-powered leaf analysis. Users can scan leaves to detect diseases, track plant health over time, and access a built-in library of plant diseases and treatments.

  • AI Leaf Scanning – Disease detection and health scoring from leaf photos
  • Plant Tracking – Monitor individual plants with health history and scan records
  • Disease Library – Browse symptoms, descriptions, and treatment recommendations
  • Clean UI – Simple, intuitive plant management experience
  • Local Storage – Secure SQLite-based data persistence

Technical Stack

React Native (Expo SDK 54+) w/ TypeScript, Expo Router, Zustand, TanStack Query (React Query), Axios, Expo SQLite, Expo ImagePicker, Flask-based RiceRx AI backend API.

Project Structure

.
β”œβ”€β”€ app/                  # Application screens and routing (Expo Router)
β”‚   β”œβ”€β”€ (tabs)/           # Main tab-based navigation
β”‚   β”œβ”€β”€ disease/          # Dynamic route for disease details
β”‚   └── plant/            # Dynamic route for individual plant details
β”œβ”€β”€ assets/               # Static assets (images, fonts)
β”œβ”€β”€ components/           # Reusable UI components (PlantCard, Chart, Modals, etc.)
β”œβ”€β”€ constants/            # Application-wide constants (styles, theme)
β”œβ”€β”€ hooks/                # Custom React hooks
β”œβ”€β”€ services/             # API integration (api.ts) and local database operations (database.ts)
└── store/                # Zustand stores for client-side state management (usePlantStore.ts)
└── ... (other configuration files like package.json, tsconfig.json, eas.json)

Development

npm install -g expo-cli 
npm install
npx expo start

Build

npx expo prebuild
cd android && ./gradlew assembleRelease
adb install android/app/build/outputs/apk/release/app-release.apk # or just cp this to device