Skip to content
 
 

Repository files navigation

Train Voucher (שובר רכבת)

Books a free Israel Railways Jerusalem voucher ticket without going through the rail.co.il SPA. Pick a direction, station, date, time, and phone number — the app handles the OTP flow and returns a QR code you scan at the gate.

Forked from idshklein/train_ticket by Ido Klein. This project is a standalone evolution of the original codebase, fixing API endpoints and request bodies after a rail.co.il schema change (May 2026), and wrapping the app as a native Android APK via Capacitor.

Running locally (browser)

# Cloudflare Worker proxy (one terminal)
cd cloudflare-worker && npx wrangler@latest dev --port 8787 --local

# Static FE (another terminal)
cd www && python3 -m http.server 8000

Open http://localhost:8000, then in DevTools console:

localStorage.setItem('apiBase', 'http://localhost:8787'); location.reload();

Building the Android APK

See ANDROID.md for toolchain setup, build, and sideload instructions.

License

BSD 3-Clause. See LICENSE. Original work © Ido Klein. Modifications © 2026 Yoav Romach.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages