8b4a8e9539462eaf0f96d6176769680b8fd1eb06
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 29s
FreeMoto Web
A web-based motorcycle route planner built with Go, Leaflet, Bootstrap, and Valhalla routing, ready for containerized deployment.
Features
- Interactive map with OpenStreetMap tiles
- Route planning with options (avoid highways, tolls, ferries, unpaved, shortest route)
- Docker-ready and configurable via
.env
Getting Started
Prerequisites
- Go (1.22+ recommended)
- Docker (for container builds)
- Valhalla routing backend
- Gitea (optional, for CI/CD and registry)
Configuration
Create a .env file in the project root:
VALHALLA_URL=http://valhalla:8002/route
PORT=8080
Local Development
cd app/web
go run main.go
Visit http://localhost:8080 in your browser.
Docker
Build and run the container:
docker build -t freemoto-web .
docker run --env-file .env -p 8080:8080 freemoto-web
Docker Compose
Example docker-compose.yml:
services:
freemoto-web:
image: git.ztsw.de/pedan/freemoto/freemoto-web:latest
ports:
- "8080:8080"
env_file:
- .env
#environment:
# - VALHALLA_URL=http://10.200.0.15:8002/route
# - PORT=8080
valhalla-scripted:
image: ghcr.io/valhalla/valhalla-scripted:latest
ports:
- 8002:8002
volumes:
- $PWD/custom_files:/custom_files
environment:
- tile_urls=https://download.geofabrik.de/europe/germany-latest.osm.pbf
Customization
- Map UI: Edit
static/index.htmlandstatic/main.js - Routing logic: Edit
static/route.js - Geolocation/autocomplete: Edit
static/geolocate.js - Backend proxy: Edit
main.go
License
MIT
Description
Languages
JavaScript
63.6%
Go
13.5%
HTML
12.7%
CSS
9%
Dockerfile
1.2%