Repository for WRI's Aqueduct Floods tool.
- Install Docker
- Clone the repo: https://github.com/greenriver/aqueduct-flood
- Run
docker-compose up
to build your image and fire up the container. Visit localhost:3030. Ctrl-C to stop.
- Create all new branches by branching off
develop
. - Open pull requests against
develop
as well. - Merge branches into
develop
when they are ready to be deployed for testing. - When a change is ready to be deployed to the production website, merge
develop
intomain
.
- Run
docker-compose run web yarn build
to compile. - Copy the contents of the
build
directory to thewriorg
repo.- Make sure you are on the
aqueduct-gr
branch of thewriorg
repo. - Copy the build to the
wriorg/applications/aqueduct/floods
directory.
- Make sure you are on the
- From the
wriorg
repo, commit and push changes to theaqueduct-gr
branch. Enter your Pantheon password when/if prompted.- In your commit message, include the app name and the hash for the commit from that app's repo that you are deploying, for example:
Update aqueduct-flood to commit 8df15603a5d939995b03ade0429f90434a19e6ca
- The app is deployed on push to https://aqueduct-gr-wriorg.pantheonsite.io/applications/aqueduct/floods/
- In your commit message, include the app name and the hash for the commit from that app's repo that you are deploying, for example:
node 10.20.1
May encounter problems upgrading because of component dependencies.
- Cost Benefit Analysis Python script: https://github.com/greenriver/aqueduct-analysis-microservice
- Floods widget data accessible through resourcewatch API
- Raster data in Google Earth Engine, accessible through resourcewatch API
AQ-components provides a bunch of useful components to use in the different AQ apps.
To work with it, go to your AQ-components project, and run yarn link
. This will generate a symlink to the project. Now, let's compile
the code and make it responsive to changes: run yarn components:watch
.
Go to your application and link the components: yarn link aqueduct-components
.
You should be ready to work!
- Aqueduct Water Risk Atlas - https://github.com/greenriver/aqueduct-water-risk
- Aqueduct Country Rankings - https://github.com/greenriver/aqueduct-countries-ranking
- Aqueduct Food - https://github.com/greenriver/aqueduct-food
- Aqueduct Floods - https://github.com/greenriver/aqueduct-flood
- Aqueduct Components - https://github.com/greenriver/aqueduct-components