PipeWatch is a holistic platform that provides the stormwater network using machine learning to allow users to check the water performance with early warning systems and helps to make informed decisions that can provide reactive approaches to mitigate flood events.
- Clone the project to local
git clone https://github.com/CheeseStick/govhack-2022-backend
- Create virtual environment
virtualenv -p python3.9 venv
- Activate virtual environment
source venv/bin/activate
- Install dependent packages
pip install -r requirements.txt
- Download required dataset from here and save under
Fixture Helper/stormwater
with a namedata.geojson
curl https://opendata.canterburymaps.govt.nz/datasets/ecan::canterbury-stormwater-pipelines.geojson --output "Fixture Helper/stormwater/data.geojson"
- Generate fixture from dataset
python Fixture Helper/stormwater/generate_fixture.py
- Move generated fixture to
PipeNetwork/fixtures/three_water_data.json
mv fixtures.json ../../PipeNetwork/fixtures/three_water_data.json
- Migrate DB
python manage.py migrate
- Start Server
python manage.py runserver
Data sets used in this project may have different license. Please check before using them.