rmglennon / transit-firebase

Build transit schedules with Firebase + JS, jQuery, Bootstrap, HTML, and CSS

Home Page:https://rmglennon.github.io/transit-firebase/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build transit schedules with JavaScript and Firebase

This app demonstrates using a Firebase Realtime Database to store transit schedule data, which is used to calculate timetables and arrival times for the fictional Coaster Surfer commuter rail system.

View the app at https://rmglennon.github.io/transit-firebase/.

It has a dashboard of current trains and upcoming arrival times, plus a form to add a new train to the schedule.

Screenshot of train schedules

To a train, an agency administrator, for example, needs to provide the name of the train, the destination, its frequency, and the time of the first train of the day.

Screenshot of form to add trains to the schedule

Because transit data is often written with a 24-hour clock, such as 06:00 or 21:30, the administrator enters the information using that format. Upon submitting the form, the train is added to the schedule list and the time values are converted into upcoming arrivals that could be communicated to passengers.

Note: These schedules are for demonstration purposes only and do not reflect actual routes. In addition, the calculations assume evenly distributed train frequencies throughout the day.

Technology

This project was built with JavaScript, jQuery, Bootstrap, HTML, and CSS. The data is in a Firebase Realtime Database.

About

Build transit schedules with Firebase + JS, jQuery, Bootstrap, HTML, and CSS

https://rmglennon.github.io/transit-firebase/

License:MIT License


Languages

Language:JavaScript 55.5%Language:HTML 36.5%Language:CSS 8.0%