2024-05-04 21:03:47 +01:00
|
|
|
# OWL-MAP
|
|
|
|
|
|
|
|
## Setup
|
|
|
|
* clone the project
|
|
|
|
* install geoip and postgres from your local package manager
|
2024-08-28 08:42:35 +01:00
|
|
|
* 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
|
2024-08-28 08:50:15 +01:00
|
|
|
* enter the venv, e.g. in pycharm
|
|
|
|
* `$ pip install -r requirements.txt`
|
2024-05-04 21:03:47 +01:00
|
|
|
* cp config/examply.py config/default.py
|
|
|
|
* setup /var/lib/data/GeoLite2/GeoLite2-City.mmdb somehow
|
|
|
|
* run 'python web_view.py'
|