The Kigali Real-Time Ride Tracker is an application designed to assist drivers with a transportation agency in Kigali while navigating between the Nyabugogo and Kimironko bus stops.
- Real-time bus location tracking
- Next bus stop information
- Distance to the next bus stop
- Estimated time of arrival (ETA) at the next bus stop
- Frontend: ReactJs
- Backend: NodeJs (ExpressJs)
- Location tracking: Google Map Api service
- NodeJS installed
- Web browser
- Personal computer with GPS enabled (or mobile phone)
- Clone the repository
git clone {url}
- Go to download location
cd {folder_name}
- Install node packages
npm install
- Get Google Map API keys at https://developers.google.com/maps/documentation/javascript/get-api-key
- Add your API keys in the file
src/config/Keys.js
- On the root of directory run
node server.js
. This will start the backend at http://localhost:5000 which will be used to request for data from Google Map on behalf of the application. - Open another terminal and run
npm run dev
. This will start frontend of application locally. - In the browser, open the frontend of application and allow browser to access your location.
- Ensure you have assigned the correct Google Maps API key to the GOOGLE_MAP_KEYS variable in the src/config/Keys.js file.
- Verify that the backend server is running at http://localhost:5000. If not, adjust the backend server address in the Keys.js file if necessary.
- Make sure you have granted location access to both the web browser and the local application.