A simple web app for relief. https://relief-system-webapp.azurewebsites.net/
Synopsis: a flask python app.
Workflow: upload data of beneficiaries, start distribution, check if beneficiaries are eligible, download report.
- Deploy the web app to Azure App Service
- Add necessary keys as environmental variables. From Azure Portal, App Service > Configuration > New application setting
SQL_USERNAME=...
SQL_PASSWORD=...
COSMOS_KEY=...
MODE=online
pyinstaller --onefile --add-data 'templates;templates' --add-data 'static;static' --add-data 'data;data' --add-data './*.py;.' app.py
- Create wireless access point
- Clone this repository
$ git clone https://github.com/rodekruis/relief-app.git
$ cd relief-app
- Set offline mode in .env
$ echo -n "MODE=offline" > .env
- Install app dependencies and run it
$ sudo apt-get update
$ sudo apt-get install libatlas-base-dev libcblas-dev g++ unixodbc-dev
$ pip install -r requirements.txt
$ python app.py
Debug connection issues (to be improved):
$ sudo systemctl stop hostapd
$ sudo systemctl unmask hostapd
$ sudo systemctl enable hostapd
$ sudo systemctl start hostapd