From 6beec54fd1119d1571cec5fdaf241d8bbcb61fe2 Mon Sep 17 00:00:00 2001
From: Dennis Priskorn <egils@riseup.net>
Date: Sat, 4 May 2024 22:03:23 +0200
Subject: [PATCH 1/7] update gitignore

---
 .gitignore | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/.gitignore b/.gitignore
index 03f1c6e..a5e1081 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,8 @@ venv
 __pycache__
 .mypy_cache/
 config/default.py
+node_modules/
+.vscode/
+config.default
+package-lock.json
+config/

From 3869ef32c0174c819330889dc80fcba23e8c50a8 Mon Sep 17 00:00:00 2001
From: Dennis Priskorn <egils@riseup.net>
Date: Sat, 4 May 2024 22:03:47 +0200
Subject: [PATCH 2/7] WIP setup instructions

---
 README.md | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 README.md

diff --git a/README.md b/README.md
new file mode 100644
index 0000000..e54b665
--- /dev/null
+++ b/README.md
@@ -0,0 +1,11 @@
+# OWL-MAP
+
+## Setup
+* clone the project
+* install geoip and postgres from your local package manager
+* setup av venv
+* enter the venv
+* run 'pip install -r requirements.txt'
+* cp config/examply.py config/default.py
+* setup /var/lib/data/GeoLite2/GeoLite2-City.mmdb somehow
+* run 'python web_view.py'

From fa02c59ae784056dc6189e843fc4bfe565a73dc8 Mon Sep 17 00:00:00 2001
From: Dennis Priskorn <egils@riseup.net>
Date: Sat, 4 May 2024 22:03:23 +0200
Subject: [PATCH 3/7] update gitignore

---
 .gitignore | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/.gitignore b/.gitignore
index 03f1c6e..a5e1081 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,8 @@ venv
 __pycache__
 .mypy_cache/
 config/default.py
+node_modules/
+.vscode/
+config.default
+package-lock.json
+config/

From 78296ce189ff1bb78ddada2d9faf61f443932c3e Mon Sep 17 00:00:00 2001
From: Dennis Priskorn <egils@riseup.net>
Date: Sat, 4 May 2024 22:03:47 +0200
Subject: [PATCH 4/7] WIP setup instructions

---
 README.md | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 README.md

diff --git a/README.md b/README.md
new file mode 100644
index 0000000..e54b665
--- /dev/null
+++ b/README.md
@@ -0,0 +1,11 @@
+# OWL-MAP
+
+## Setup
+* clone the project
+* install geoip and postgres from your local package manager
+* setup av venv
+* enter the venv
+* run 'pip install -r requirements.txt'
+* cp config/examply.py config/default.py
+* setup /var/lib/data/GeoLite2/GeoLite2-City.mmdb somehow
+* run 'python web_view.py'

From 99f74b12d01425e0172eddf7509231ad50c90cef Mon Sep 17 00:00:00 2001
From: Dennis Priskorn <egils@riseup.net>
Date: Wed, 28 Aug 2024 09:42:35 +0200
Subject: [PATCH 5/7] doc: README: Add more information about postgres setup

---
 README.md | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index e54b665..5759774 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,14 @@
 ## Setup
 * clone the project
 * install geoip and postgres from your local package manager
-* setup av venv
+* setup postgres on your machine, see e.g. https://wiki.archlinux.org/title/PostgreSQL
+  * `$ sudo su postgres`
+  * `$ initdb -D /var/lib/postgres/data`
+* start postgres
+* create postgres user
+  * `$ sudo su postgres`
+  * `$ createuser --interactive` -> owl
+* setup a venv
 * enter the venv
 * run 'pip install -r requirements.txt'
 * cp config/examply.py config/default.py

From 2f35dd712c31d715fd3e62e12c658f08ee60e58c Mon Sep 17 00:00:00 2001
From: Dennis Priskorn <egils@riseup.net>
Date: Wed, 28 Aug 2024 09:50:15 +0200
Subject: [PATCH 6/7] doc: README: Add more information about venv setup

---
 README.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 5759774..d105c90 100644
--- a/README.md
+++ b/README.md
@@ -11,8 +11,8 @@
   * `$ sudo su postgres`
   * `$ createuser --interactive` -> owl
 * setup a venv
-* enter the venv
-* run 'pip install -r requirements.txt'
+  * enter the venv, e.g. in pycharm
+  * `$ pip install -r requirements.txt`
 * cp config/examply.py config/default.py
 * setup /var/lib/data/GeoLite2/GeoLite2-City.mmdb somehow
 * run 'python web_view.py'

From 92456553e6341ec625a4cd1a179d83fb3146a264 Mon Sep 17 00:00:00 2001
From: Dennis Priskorn <egils@riseup.net>
Date: Wed, 28 Aug 2024 10:44:39 +0200
Subject: [PATCH 7/7] doc: README: Add more information about download of geoip
 files

---
 README.md | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index d105c90..113c22a 100644
--- a/README.md
+++ b/README.md
@@ -10,9 +10,17 @@
 * create postgres user
   * `$ sudo su postgres`
   * `$ createuser --interactive` -> owl
+* create the db tables
 * setup a venv
   * enter the venv, e.g. in pycharm
   * `$ pip install -r requirements.txt`
-* cp config/examply.py config/default.py
-* setup /var/lib/data/GeoLite2/GeoLite2-City.mmdb somehow
+* `$ cp config/example.py config/default.py`
+* download id-tagging-schema
+  * `$ git clone https://github.com/openstreetmap/id-tagging-schema`
+  * adjust paths in default.py
+* download geoip databases
+  * https://git.io/GeoLite2-City.mmdb
+  * `$ pacman -S geoip-database-extra` in ArchLinux or https://dl.miyuru.lk/geoip/maxmind/city/maxmind4.dat.gz
+  * adjust default.py
+* run the tests
 * run 'python web_view.py'