Skip to content

tordans/bikeparkingberlin

This branch is 5 commits ahead of, 2 commits behind britiger/bikeparkingberlin:docker_app.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b8fddfb · Jul 17, 2021
Aug 14, 2019
Jun 7, 2021
Jun 7, 2021
Jun 7, 2021
Dec 27, 2019
Jun 7, 2021
Jun 7, 2021
Jul 17, 2021
Jul 17, 2021
Dec 27, 2019
Jul 17, 2021

Repository files navigation

bikeparking.lorenz.lu is a project of the OSM Verkehrswende Berlin Usergroup.

Core features are:

  • Show existing bicyle parking data from OSM in as statistics and on a map.
  • Compare external OpenData of bicycle parking data and bicycle rental data with data from OSM. This allows to validate OpenData sets and manually add bicycle parking infrastructure to OSM (ground truth).

Development

You can start it by your own using Docker.

The script links your local development directory as volume into the container.

  1. Building a local image:
./build-docker.sh
  1. Download and Link a pbf-File:
# Here as example of Brandenburg incl. Berlin
wget http://download.geofabrik.de/europe/germany/brandenburg-latest.osm.pbf
ln -s brandenburg-latest.osm.pbf import.osm.pbf
  1. Start container and import data
./run-docker.sh
  1. Work with the container
# Preparation
# 1. Load external assets
./run-docker.sh download_js

# Update Database
./run-docker.sh update

# 2. Import or update external data
./run-docker.sh external

# 3. Import or update rental stations
./run-docker.sh rental

# 4. Import import.osm.pbf
./run-docker.sh reimport

# Development
# Start Webapp
./run-docker.sh webapp
# Need to Open the Browser http://127.0.0.1:5000/

If you want to persit your data in the database you need to edit run-docker.sh by adding a database volume:

# create a Volume / otherwise you can use a local directory
docker volume create pgdata

# docker run -e POSTGRES_PASSWORD=bikeparking -p 127.0.0.1:5000:5000 -v `pwd`:/bikeparking --rm -d --name $CONTAINER_NAME bikeparking
docker run -e POSTGRES_PASSWORD=bikeparking -p 127.0.0.1:5000:5000 -v `pwd`:/bikeparking -v pgdata:/var/lib/postgresql/data --rm -d --name $CONTAINER_NAME bikeparking

Releases

No releases published

Packages

No packages published

Languages

  • HTML 44.3%
  • Shell 24.0%
  • Python 23.3%
  • JavaScript 6.3%
  • PLpgSQL 1.7%
  • CSS 0.4%