Setup Mobile App
Demo Video
DIGIT Health Campaign Management Demo | DIGIT HCM
Overview
This guide provides step-by-step instructions to clone and run the DIGIT Health Campaign Management (HCM) App locally on your machine. The app is a Flutter application developed for health campaigns.
Pre-requisites
Before you begin, ensure that you have the following installed on your PC:
Flutter 3.16.5 version
flutter setup for linux and android - flutter document
flutter setup for windows and android - flutter document
Android device
Steps
Open a terminal and run the following commands:
git checkout to branch installation-demo-setup
Open the project in your preferred IDE (Android Studio, Visual Studio Code). Make sure that your IDE is configured with the Flutter and Dart plugins.
Create a .env file inside the apps/health_campaign_field_worker_app folder.
copy the below contents to you newly created .env file
Steps to Generate APK
After successfully setting up the env file, navigate to apps/health_campaign_field_worker_app folder in the terminal,
Run the following command to generate the APK:
flutter build apk --release --no-tree-shake-icons
After successfully running the above command, the APK will be generated in the path
apps/health_campaign_field_worker_app/build\app\outputs\flutter-apk\app-release.apk
Install the generated APK on your preferred Android device.
Last updated