Skip to content
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
favicons upload route details to mapbox Feb 2, 2019
html fix duplicate id warnings Oct 31, 2018
routes details blankenese süd Mar 7, 2019
spec add rudimentary construction site list Jan 10, 2019
src details blankenese süd Mar 7, 2019
tools hohe liedt and neubergerstraße May 3, 2019
.dockerignore improve build process to not delete files when build-symlink is used Aug 14, 2018
.gitignore improve build process to not delete files when build-symlink is used Aug 14, 2018
.rspec add basic tests Jul 4, 2018
.travis.yml enable tests on travis Aug 18, 2018
Dockerfile missing dependency Jan 15, 2019
Gemfile support updates to twitter Jan 5, 2019
Gemfile.lock update nokogiri Jan 15, 2019
LICENSE wip Jun 2, 2018
README.md document how to run tests Oct 13, 2018
base.scss add rudimentary construction site list Jan 10, 2019
build.sh do not delete old assets on redeploy Nov 10, 2018
deploy.sh improve cache usage on multiple deployments Jan 15, 2019
desktop.scss use less thin font for improved readability on low res screens Nov 10, 2018
image_updates.yaml new images Bornheide Feb 17, 2019
install.sh enhance route display Jun 9, 2018
main.html add rudimentary construction site list Jan 10, 2019
mobile.scss different fix for Safari breaking panning on the map :( Sep 9, 2018
nginx-veloroute disable brotli for now Jan 15, 2019
package.json update a bunch of dependencies Dec 24, 2018
postcss.config.js Update autoprefixer config to support safari and ie11 Jun 21, 2018
range.scss decent mapillary integration Jul 23, 2018
routes.json hohe liedt and neubergerstraße May 3, 2019
shortcomings.yaml hohe liedt and neubergerstraße May 3, 2019
translations.yaml show recent changes on start page Oct 31, 2018
webpack.config.js add rudimentary construction site list Jan 10, 2019
yarn.lock update a bunch of dependencies Dec 24, 2018

README.md

Live Version

You can find the live version at veloroute.hamburg. It is updated once per week.

Building

Building this projects has two steps:

  1. the frontend, using yarn/webpack
  2. fetching fresh Geodata from OSM, using a Ruby script

Refer to Dockerfile on how each steps work exactly and which dependencies are required.

The quickest way to a working copy is to run

./build.sh

# or with brotli/gzip static compression
PRODUCTION=yes ./build.sh

# or running all test suites
TEST=yes ./build.sh

and have all artifacts be statically compiled into build/, which can then be served a webserver of your choice.

Frontend Coding

To get live reload, first build the dependencies as shown above. If you have setup Ruby locally, you can instead:

./routes/update_relations.rb
# essentially makes "build" in the directory structure optional, to match with the URLs
ln -s . build

Webpack is configured to serve static assets from the build directory. To run a development server, use:

npm run start:dev

Testing

There are only some basic tests for backend. You can run them with

bundle exec rspec

To run the link checker and other tests that require a network connection, add --tag integration:

bundle exec rspec --tag integration
You can’t perform that action at this time.