No description
Find a file
2019-11-11 19:30:29 +01:00
.tx translate via i18next 2019-02-26 18:02:02 +01:00
css Replace profile options/editor switch buttons with Bootstrap tabs 2019-11-11 19:30:29 +01:00
js Replace profile options/editor switch buttons with Bootstrap tabs 2019-11-11 19:30:29 +01:00
layers Use CyclOSM as default map for French users 2019-10-06 15:24:25 +02:00
locales Replace profile options/editor switch buttons with Bootstrap tabs 2019-11-11 19:30:29 +01:00
.eslintignore Add eslint 2019-11-03 14:29:26 +01:00
.eslintrc.json Add eslint 2019-11-03 14:29:26 +01:00
.gitignore Add markers POI layer 2019-10-10 21:07:49 +02:00
.prettierignore Bump gulp to version 4.0.2. 2019-06-20 17:26:18 +02:00
.prettierrc Increase prettier maxwidth to 120 2019-08-10 19:36:36 +02:00
.travis.yml Setup Travis CI to run build in release mode 2019-05-23 12:09:11 +02:00
CHANGELOG.md Update changelog 2019-06-27 12:04:02 +02:00
config.template.js Remove url-search-params for now 2019-11-03 14:16:13 +01:00
gulpfile.js Reload application on locales change 2019-10-10 21:07:46 +02:00
index.html Replace profile options/editor switch buttons with Bootstrap tabs 2019-11-11 19:30:29 +01:00
keys.template.js Add prettier and reformat code 2019-05-17 20:55:39 +02:00
LICENSE Update copyright date 2018-09-08 19:59:50 +02:00
package.json Update bootbox, datatables and jstree to resolve jquery security issue 2019-11-07 11:52:28 +01:00
README.md Merge branch 'master' into feature/distance-marker 2019-10-10 20:04:14 +02:00
yarn.lock Update bootbox, datatables and jstree to resolve jquery security issue 2019-11-07 11:52:28 +01:00

brouter-web

Web client (by @nrenner and contributors) for the BRouter routing engine (by @abrensch). Work in progress.

Instances:

This repository is only about the frontend. For the server/backend, BRouter routing engine, Android app, profiles, brouter.de site, see:
https://github.com/abrensch/brouter

More information:
https://brouter.de

Contact

General BRouter discussions/questions, support:

Translating

Translations are managed using the Transifex platform. After signing up, you can go to BRouter's project page, select a language and click Translate to start translating.

Installation

As an alternative to the above online version, the standalone server of BRouter can also be run on your local desktop.

Install BRouter (server with routing engine)

  1. download and unzip latest BRouter revision
    e.g. for Linux (replace ~/opt/ with your preferred install directory and 1_4_11 with latest version):

        mkdir ~/opt/brouter
        cd ~/opt/brouter
        wget https://brouter.de/brouter_bin/brouter_1_4_11.zip
        unzip brouter_1_4_11.zip
        chmod +x ./standalone/server.sh
    
  2. download one or more data file(s) (rd5) into segments4 directory

Install BRouter-Web (client)

  1. download BRouter-Web as subdirectory brouter-web of the brouter directory

    • using the latest stable release - adjust to current version number - from https://github.com/nrenner/brouter-web/releases:

      wget https://github.com/nrenner/brouter-web/releases/download/0.7.0/brouter-web-0.7.0.zip
      unzip brouter-web-0.7.0.zip -d brouter-web
      
    • OR the current development state (potentially instable and without runtime distributables):

      wget https://github.com/nrenner/brouter-web/archive/master.zip
      unzip master.zip
      mv brouter-web-master brouter-web
      
      • build the distributable files required for runtime (only for development state), see section Build
  2. copy config.template.js to config.js

  3. configure URL to profiles2 directory
    set BR.conf.profilesUrl in config.js, e.g. uncomment:

        BR.conf.profilesUrl = 'http://localhost:8000/profiles2/';
    
  4. add your API keys (optional)
    copy keys.template.js to keys.js and edit to add your keys

Run

  1. start BRouter server in the standalone directory with ./server.sh or server.cmd (Windows)

  2. serve the brouter directory for BRouter-Web
    This is needed for pre-loading the selected profile (unless you allowed local file access in the Browser). Depending on your setup (see How to run things locally), start a web server in the brouter directory, e.g.:

        python -m SimpleHTTPServer
    
  3. open http://localhost:8000/brouter-web/

Build

Dependencies

Requires Node.js and Yarn.

Install

yarn

Build

yarn build #for release
yarn build debug #for development

Develop

yarn serve

License

Copyright (c) 2018 Norbert Renner and contributors, licensed under the MIT License (MIT)

Credits and Licenses