Skip to content

hkbus/hk-independent-bus-eta

Repository files navigation

香港 - 獨立巴士預報 HK Bus ETA

React Test

無廣告的巴士預報站整合了香港巴士(九巴、龍運、城巴、嶼巴、港鐵巴士)、綠色小巴、輕鐵及港鐵的到站預報,介面清晣直接,力求讓用戶快速獲得所需資訊。

An ad-free bus ETA site for Hong Kong, with arrival times from KMB, LWB, CTB, NLB, green minibus, light rail, and MTR, with a clutter-free UI that lets you get what you need, fast.

常見問題 FAQ

常見問題 FAQ

資料來源 Data Sources

本網站一切到站預報資料均來自資料一站通空間數據共享平台及相關機構,路線及收費資料來自HK Bus Crawling

ETA data is from DATA.GOV.HK, Common Data Spatial Infrastructure and respective providers. Route and fare data from HK Bus Crawling.

Note

The project is a React web app with Material-UI. You can clone the project and host it by your own, for personal use. Please note that there are specific setups for package.json (i.e., homepage) and Google Analytics Measure ID in public/index.html.

Docker

See docker.md for more information about using docker for deployment / development.

Setup a Development Environment locally

To run this project, you need nodejs and yarn.

Go ahead to https://nodejs.org to download and install nodejs on your system.

Once you have nodejs installed, you can run:

npm install -g yarn

which would install yarn in your system.

Install Dependency

If you have yarn installed, go to the project directory, run the following command:

yarn install

This command downloads all the dependencies required to run this app and save them in the node_modules sub-directory.

You only need to do this once, unless the project has been updated and the required dependencies have changed.

Start the app

With the dependencies downloaded, in the project directory, you can run:

yarn start

This runs the app in development mode.
Open https://localhost:443 (or simply https://localhost) to view it in your browser.

The page will reload if you make edits.
You will also see lint errors in the console.

Build the app

In the project directory, you can run:

yarn build

This command builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

yarn production-build

Build the app with SEO optimized pages.

Contributors

Project owner chunlaw is the initiator of the whole project. Everyone is welcome to contribute. Other contributors are listed below (ordered by alphabetical order):

LOOHP

chakflying

chengkeith

cswbrian

evnchn

hk-ng

kkoyung

lifehome

louiscklaw

lzwn128

sdip15fa

skpracta

thomassth

maruk0chan