Skip to content

sos-zone/osm-validator

 
 

Repository files navigation

osm-validator

OSM validator

Requirements

  • python 3.6
  • postgres + postgis + hstore
  • redis
  • osm2pgsql
  • osmconvert (osmctools)

Install front dependencies

npm install

Build front application

node_modules/.bin/webpack

Add OAUTH_OPENSTREETMAP_KEY && OAUTH_OPENSTREETMAP_SECRET at .env

Run tests

export $(cat .env.test | xargs) && tox

Configure

  • 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)

  • 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/
    

Migrate

export $(cat .env | xargs) && alembic upgrade head

Run validators

export $(cat .env | xargs) && python schedule.py

Run web server

export $(cat .env | xargs) && python main.py

Releases

No releases published

Packages

No packages published

Languages

  • Python 86.4%
  • JavaScript 10.6%
  • HTML 2.4%
  • Mako 0.6%