Dengue-Stop provides a simple and effective way to report and discover dengue incidents around your area, with the help of community.
This instructions consist of 3 sections for Community Flutter App, Flask Backend and React Admin Panel respectively. Make sure to follow the initial setup before following each sections.
Clone the repository
git clone https://github.com/scorelab/DengueStop.git
-
Install Flutter
Follow the official guide from the flutter team. -
Run
flutter doctor
flutter doctor
If all are ok, jump-in to the next step.
-
Go to the
dengue_app
foldercd dengue_app/
-
Install all the dependent flutter packages.
Runflutter pub get
in the terminal, or click Packages get in IntelliJ or Android Studio.flutter pub get
-
Run the application.
flutter run
Note - If the flutter application fails to connect to the local flask server, try the following command in the terminal
adb reverse tcp:5000 tcp:5000
-
Install Python3
-
Go to
backend
foldercd backend/
-
Create a
.env
file according to the.env.sample sample
file in the backend app root.DB_USERNAME=root DB_PASSWORD=password DB_DATABASE=dengue_stop DB_HOST=localhost SECRET_KEY=secretkey
-
If you're running the backend for the first time, run the
init.sh
script to install the required dependencies from therequirements.txt
file. If not, skip to the 3rd step.sh init.sh
-
Start the flask server by running the
start.sh
script. This will run theapp.py
file. Flask server will run athttp://127.0.0.1:5000
by default.sh start.sh
-
Go to
admin_panel
foldercd admin_panel/
-
If you're running the admin_panel for the first time, run the
yarn install
to install the required dependencies. If not, skip to the 3rd step. -
Run the application with
yarn start
command. This will run admin panel athttp://localhost:3000
by default. -
To test the application. Run the tests with
yarn test
command.
This project is licensed under the terms of the Apache License 2.0.