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 doctorflutter doctorIf all are ok, jump-in to the next step.
-
Go to the
dengue_appfoldercd dengue_app/ -
Install all the dependent flutter packages.
Runflutter pub getin 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
backendfoldercd backend/ -
Create a
.envfile according to the.env.sample samplefile 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.shscript to install the required dependencies from therequirements.txtfile. If not, skip to the 3rd step.sh init.sh -
Start the flask server by running the
start.shscript. This will run theapp.pyfile. Flask server will run athttp://127.0.0.1:5000by default.sh start.sh
-
Go to
admin_panelfoldercd admin_panel/ -
If you're running the admin_panel for the first time, run the
yarn installto install the required dependencies. If not, skip to the 3rd step. -
Run the application with
yarn startcommand. This will run admin panel athttp://localhost:3000by default. -
To test the application. Run the tests with
yarn testcommand.
This project is licensed under the terms of the Apache License 2.0.