OSM validator
- python 3.6
- postgres + postgis + hstore
- redis
- osm2pgsql
- osmconvert (osmctools)
- node
export $(cat .env.test | xargs) && tox
-
Create
.env
file -
Generate
SECRET_KEY
(cryptography.fernet.Fernet.generate_key()
) -
Set postgres db connection
-
Set redis connection
-
Set openstreetmap OAuth credentials (https://wiki.openstreetmap.org/wiki/OAuth):
OAUTH_OPENSTREETMAP_KEY=Consumer Key there OAUTH_OPENSTREETMAP_SECRET=Consumer Secret there
-
Set osm initialization dumps:
OSM_INIT_PBF=http://download.geofabrik.de/europe/belarus-180101.osm.pbf OSM_INIT_SEQUENCE_NUMBER=1749 OSM_CHANGE=http://download.geofabrik.de/europe/belarus-updates/
npm install
node_modules/.bin/webpack
export $(cat .env | xargs) && alembic upgrade head
export $(cat .env | xargs) && python schedule.py
export $(cat .env | xargs) && python main.py