尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗Open the app and see when to leave for your next train. Pick your station and direction once — settings are saved on your device.
?station=Edgewater%20Stn&direction=Perth&leaveBefore=10npm install
npm start
Open http://localhost:3000.
Repo: github.com/tdrevans-aus/next-train-app
public is auto-detected).Or from this folder after npx vercel login:
npx vercel --prod
vercel.json sets short cache headers on /api/* so live times stay fresh.
On first launch, the app asks you to pick station and direction. You can tap Use nearest station (location permission) to pre-fill the closest Transperth station, then choose your direction and save.
There is no built-in default route — every user sets their own commute.
public/lib/train-times.js — shared logic used locally and in the cloudThe app includes an ad slot below the train details (not in the hero card), a one-time notice before ads load, and Privacy / About pages. The free version always shows ads; an ad-free upgrade is planned for later.
config/site-config.example.json values into public/site-config.json:
{
"adsenseClient": "ca-pub-XXXXXXXXXXXXXXXX",
"adsenseSlot": "XXXXXXXXXX"
}
public/about.html before going live.With empty site-config.json values, no ads or notice appear (fine for local dev).
The Play Store build uses Capacitor to wrap the app and Google AdMob for ads (not AdSense).
Ad IDs live in public/site-config.json:
{
"admobAppId": "ca-app-pub-XXXXXXXXXXXXXXXX~YYYYYYYYYY",
"admobBannerId": "ca-app-pub-XXXXXXXXXXXXXXXX/ZZZZZZZZZZ",
"admobTestMode": true
}
Set admobTestMode to false before a production Play Store release.
Prerequisites: Android Studio with SDK installed.
npm install
npm run cap:sync
npm run cap:open
In Android Studio: Run on a connected phone or emulator. The app loads the hosted Vercel URL (capacitor.config.ts).
Swipe left on the departure card for a later train, or swipe right for an earlier one. A one-time hint appears the first time you use the app.