WIP: Cycling map with automatic routing, screenshots and much more.
Find a file
2019-09-11 15:25:40 +07:00
backend fixed backend filtering 2019-03-29 12:24:09 +07:00
config fixed front-example 2019-03-05 17:20:22 +07:00
osrm osrm startup helpers added 2018-08-27 15:51:26 +07:00
src test deploy 2019-09-11 15:25:40 +07:00
.babelrc Optimized rc-slider imports 2019-03-08 11:03:20 +07:00
.eslintrc stars at route-row-view 2019-03-29 17:22:34 +07:00
.flowconfig map_list: initial 2018-12-05 14:16:23 +07:00
.gitignore ignored stats.json 2019-03-08 11:03:39 +07:00
custom.d.ts cleanup 2019-07-24 14:32:16 +07:00
package-lock.json not showing sticker dialog after adding sticker 2019-09-11 12:51:00 +07:00
package.json removed styled from deps 2019-09-11 10:58:06 +07:00
README.md Update README.md 2019-03-20 14:25:34 +07:00
tsconfig.json stars at route-row-view 2019-03-29 17:22:34 +07:00
webpack.config.js fixed css-loader hashing 2019-03-21 18:19:40 +07:00

Bicycle routes map editor

Bicycle routes app with automatic routes, map screenshots, stickers and other features.

See it in action: Demo

Prerequisites

node, ts-node, osrm-server

Installing

First, download and install the project

git clone https://github.com/muerwre/orchidMap.git
cd orchidMap
npm i

Setting up OSRM

Install OSRM server as written here: https://github.com/Project-OSRM/osrm-backend

Specify country and region in osrm/prepare_maps.sh or download .pbf file from https://download.geofabrik.de/ manually. After starting ./prepare_maps you'll get parsed .osrm files for Open Source Routing Machine server.

Next you need to edit start_server.sh to specify address, port for server and path to parsed files.

After that run start_server.sh in screen or by the way you feel comfortable.

Next edit ./config/frontend.js and specify OSRM url there. By default, OSRM starts at https://localhost:5001/

Common setup

Look at /config/ folder, there's backend and frontend .example.js files, just rename them to .js only.

Client

Configs are placed in ./config/frontend.js

For development launch npm start and visit http://localhost:8000/

For production launch npm build, the output will be placed at ./dist folder, you should configure your http server to serve index html from that folder.

Backend

Take a look at ./config/backend.js. By default your api server will be spawned at http://localhost:3000/

For development launch npm serve-dev, it will launch dev server, reloading on every code update

For production launch npm serve and make it running in background by any desirable way, such as forever