A climate change solution app built for the EarthXHackathon.
This app consists of a Flask server and a Flutter app. To run the Flutter app, see the Flutter SDK installation here - https://flutter.dev/.
For Flask, make sure that you have python 3 installed - see latest version here - https://www.python.org/downloads/ Use pip install to get flask
- Install Flask using pip using this command - https://pypi.org/project/Flask/
- Install beautifulsoup4 using this command - https://pypi.org/project/beautifulsoup4/
- In the directory farming_app/lib/api_client/api_client change line 8, 25, 38 - so that the local ip - 192... matches your network local ip. This will be your ipv4 address, you can use the
ifconfig
oripconfig
command to figure this out.This may change periodically, so if the server isn't communicating with the app, make sure to look at that.
Running the Flask app -
- Navigate to the farming_app/farmscraper directory.
- Run the following commands -
Windows -
set FLASK_APP=main.py
Mac -export FLASK_APP=main.py
Both - flask run --host=0.0.0.0