Skip to content

An experiment to render a minimalistic transport simulation with WebGL and Wasm.

License

Notifications You must be signed in to change notification settings

pixunil/tiny-transport

Repository files navigation

Tiny Transport

Build Status Code Coverage

An experiment using open Gtfs-Data of VBB to render a minimalistic simulation with WebGL.

Dependencies

This project uses Rust and the wasm-pack utility. For your convenience, the Gtfs data files are stored in the repo with Git Lfs.

git lfs install
curl https://sh.rustup.rs -sSf | sh
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

Running

To run the simulation, you need to:

  1. Convert the Gtfs-dataset
  2. Compile the wasm module
  3. Start a server
  4. Open the page
cargo run --release import import/data/vbb.bzip -- store
wasm-pack build wasm --target web --out-dir www/wasm
python3 -m http.server 8917
xdg-open http://localhost:8917/wasm/www

About

An experiment to render a minimalistic transport simulation with WebGL and Wasm.

Topics

Resources

License

Stars

Watchers

Forks