rail announcements
1.0.0
查看網站!
產生和播放英國鐵路公告的網站。
資訊
根據 Worldline IT Services UK Limited 的法律通知,Atos Anne 的錄音不再可用。
欲了解更多信息,請訪問 https://railannouncements.co.uk/atos-worldline
當菲爾·塞耶慢慢地開始離開鐵路時,我希望我能得到更多他的公告的錄音。因為當時我沒有這麼做,所以我決定這次要主動去做!
️ 在提交任何文件之前,請遵循這些準則。如果您不這樣做,您的永久居民可能不會被接受。
音訊檔案的資料夾可以在audio/
中找到。
mp3
檔案。we will be calling at.mp3
。BTN.mp3
。作為先決條件,您需要安裝 Node.js 和 Yarn 套件管理器。
克隆儲存庫後,使用 Yarn 安裝所需的依賴項:
yarn install
然後就可以啟動三個(是的,三個)開發服務:
# In one terminal, run (for the website):
yarn run develop
# When this says "You can now view rail-announcements in the browser.", open a new terminal and run (for the live trains API):
yarn run develop:workers
# Finally, open a new terminal and run (to serve the audio files):
yarn run serve-audio
您將能夠訪問該網站:http://local.davw.network:8787。 local.davw.network
是一個始終解析到本機的網域,用於確保網站在本機開發過程中與音訊檔案和後端 API 正常運作。
有些功能需要額外的工作才能在本地進行測試。
您需要使用 RTT API 使用者名稱和密碼在儲存庫的根目錄下建立一個.dev.vars
檔案:
RTT_API_USERNAME=rttapi_username
RTT_API_PASSWORD=your_password
該網站是使用 Gatsby 透過 React 框架創建的。如果您不熟悉 React 或 Gatsby,您可能需要在貢獻之前研究它們。
在提交更改之前,請格式化您的程式碼:
yarn run format