Skip to content

Commit

Permalink
improve readme (tbicr#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbicr authored Jan 7, 2018
1 parent 37b80be commit 7ba4325
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,7 @@ OSM validator
- 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
- node

# Run tests

Expand All @@ -28,13 +19,25 @@ OSM validator
- 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 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/

# Install front dependencies

npm install

# Build front application

node_modules/.bin/webpack

# Migrate

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

0 comments on commit 7ba4325

Please sign in to comment.