Setting up a server from a development build
July 3, 2026 ยท View on GitHub
Build and run MOTIS with bundled UI
-
Build
motis. Refer to the respective documentation if necessary: -
Build the UI:
motis$ cd ui motis/ui$ pnpm install motis/ui$ pnpm -r build -
Download OpenStreetMap and timetable datasets and place them in the build folder of
motis:motis/build$ wget https://github.com/motis-project/test-data/raw/aachen/aachen.osm.pbf motis/build$ wget https://opendata.avv.de/current_GTFS/AVV_GTFS_Masten_mit_SPNV.zip -
Run
motis configon the downloaded datasets to create a config file:motis/build$ ./motis config aachen.osm.pbf AVV_GTFS_Masten_mit_SPNV.zip -
Run
motis importand then start the server usingmotis server:motis/build$ ./motis import motis/build$ ./motis server -
Open
localhost:8080in a browser to see if everything is working.
Run backend and UI dev server together
Run backend from your development build and UI in watch mode:
-
Start MOTIS backend:
motis/build$ ./motis server -
In a second terminal, start the UI dev server:
motis/ui$ pnpm dev -
Open the UI with an explicit backend target:
http://localhost:5173/?motis=http://localhost:8080- if Vite uses another port, adapt accordingly
- for UI-only changes you can also point to a live backend, e.g.
?motis=https://api.transitous.org