App Interface and Botanify APK
- Plant Diagnosis: AI technology for diagnosing plant pests and diseases.
- Watering Reminder: Never forget to water your plants.
- Informative Articles: Access to information across various categories.
- Android
- Kotlin
- Jetpack Compose
- Dagger Hilt
- Firebase Realtime Database
- Firebase Storage
- Firebase Authentication
- Alarm Manager
- TFLite
- Android Studio installed
- Firebase project set up
- Node.js installed
- Python installed
- MySQL installed and running
- Clone the main repository:
git clone https://github.com/rfqagst/botanify.git
- Clone the backend repository:
git clone https://github.com/rfqagst/botanify_backend.git
- Open the main project in Android Studio.
- Sync the project with Gradle files.
- Configure Firebase:
- Add
google-services.json
to theapp
directory. - Enable Firebase Authentication, Realtime Database, and Storage in your Firebase project.
- Add
- Build and run the application on your Android device or emulator.
- Start MySQL on your computer.
- Import the provided SQL dump into your MySQL database using the
botanify.sql
file:mysql -u your_username -p your_database_name < path_to_botanify.sql
- Navigate to the
botanify_mysql_backend
folder in the backend repository:cd botanify_backend/botanify_mysql_backend
- Install the necessary dependencies:
npm install
- Start the MySQL backend server:
node index.js
- Navigate to the
scan_plant_backend
folder in the backend repository:cd botanify_backend/scan_plant_backend
Create a new virtual environment with:
python -m venv new-env
Activate the virtual environment with:
- Windows
.\/new-env/Scripts/activate.bat
Or
.\/new-env/Scripts/activate.ps1
- Linux
source new-env/bin/activate
Install the required modules listed in requirements.txt
with:
pip install -r requirements.txt
Wait until the installation is complete.
Create a .env
file based on the example file .env.example
.
Fill in the .env
file with your API_KEY
and SCORING_URL
:
API_KEY=YOUR_API_KEY # Find this in your IBM Cloud profile settings
SCORING_URL=YOUR_MODEL_DEPLOYMENT_URL # Find this in your model deployments in IBM Studio
Run the Flask backend with:
python app.py
Wait until it starts, the application will be live at localhost:5000
.
Now your backend servers are running and your Android application should be able to interact with them.