Skip to content

yomach/train_ticket

 
 

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

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 66.5%
  • Java 15.2%
  • HTML 10.3%
  • CSS 8.0%