- Create an application that will allow the user to add records for train schedules.
- When adding a train, the administrator must provide the following:
- The starting location of the train.
- The destination.
- The time of first departure.
- The frequency at which the train departs.
- For the departure time of the first train, that value should be entered in 24-hour time format (i.e. 18:00).
- For the frequency between trains is in minutes.
- Calculate the time of the next arrival of a train.
- The Next arrival should be displayed as relative to the current time.
- The schedule time of the trains should be viewable by multiple users.
- Update the "Minutes Away" and "Next Arrival" every minute.
- Implement update and remove buttons for each train.
- Allow users to edit the elements that constitute a train schedule:
- The train's starting point.
- The destination.
- The departure frequency.
- The arrival time.
- Implement access controls.
- Only allow users who log in with their Google or GitHub accounts to modify the train schedule.
- Must use Firebase to make the site multi-user capable.
- Use Moment.js to simplify the date/time calculations.