From 1e8738588786bd65dfda961d10818695cd6c2ca5 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Mon, 14 Feb 2022 15:33:42 +0000 Subject: [PATCH] update section headers --- docs/setup-dev-environment.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/setup-dev-environment.md b/docs/setup-dev-environment.md index 31e118bd..6db2a502 100644 --- a/docs/setup-dev-environment.md +++ b/docs/setup-dev-environment.md @@ -149,7 +149,11 @@ local repository, so that it can read from the `package.json` file. `cd ./colouring-london/app && npm install` -## Setting up Python +## Including test data + +Run the following two sections if you wish to load test buildings into the application from OpenStreetMaps (OSM). + +#### Set up Python: Now set up a virtual environment for python. In the following example we have named the virtual environment *colouringlondon* but it can have any name. @@ -172,11 +176,11 @@ in the `etl` folder of your local repository. `pip install -r ./colouring-london/etl/requirements.txt` -## Load OpenStreetMap test polygons +#### Load OpenStreetMap test polygons: First Install prerequisites. ```bash -sudo apt install parallel +sudo apt-get install parallel ``` Check you are in the virtual environment you setup earlier, otherwise run: @@ -208,7 +212,7 @@ psql -d < ../migrations/002.index-geometries.up.sql psql -d < ../migrations/003.index-buildings.up.sql ``` -## Finally +## Run database migrations Re-run the remaining migrations in `../migrations` to create the rest of the database structure.