/govhack-2022-backend

GovHack 2022 Backend

Primary LanguagePython

PipeWatch API Service (GovHack 2022)

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.

Installation

  1. Clone the project to local
git clone https://github.com/CheeseStick/govhack-2022-backend
  1. Create virtual environment
virtualenv -p python3.9 venv
  1. Activate virtual environment
source venv/bin/activate
  1. Install dependent packages
pip install -r requirements.txt
  1. Download required dataset from here and save under Fixture Helper/stormwater with a name data.geojson
curl https://opendata.canterburymaps.govt.nz/datasets/ecan::canterbury-stormwater-pipelines.geojson --output "Fixture Helper/stormwater/data.geojson"
  1. Generate fixture from dataset
python Fixture Helper/stormwater/generate_fixture.py
  1. Move generated fixture to PipeNetwork/fixtures/three_water_data.json
mv fixtures.json ../../PipeNetwork/fixtures/three_water_data.json
  1. Migrate DB
python manage.py migrate
  1. Start Server
python manage.py runserver

Contributors

Jun Jung

Lite Kim

SeongRok Shin

License

MIT

Disclaimer

Data sets used in this project may have different license. Please check before using them.

Dataset used in this project