GithubHelp home page GithubHelp logo

itshally / train-scheduler-basic Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 7.95 MB

In this assignment, creating a train schedule application that incorporates Firebase to host arrival and departure data. This app will retrieve and manipulate this information with Moment.js. This website will provide up-to-date information about various trains, namely their arrival times and how many minutes remain until they arrive at their station.

License: MIT License

HTML 52.89% JavaScript 24.21% CSS 22.91%

train-scheduler-basic's Introduction

Train Scheduler Basic

A train schedule application that incorporates Firebase to host arrival and departure data. This app will retrieve and manipulate this information with Moment.js. It will also provide up-to-date information about various trains, namely their arrival times and how many minutes remain until they arrive at their station.

When adding trains, administrators should be able to submit the following:

✅ Train Name

✅ Destination

✅ First Train Time -- in military time

✅ Frequency -- in minutes

✅ Code this app to calculate when the next train will arrive; this should be relative to the current time.

✅ Users from many different machines must be able to view same train times.

📂 Files

Train-Scheduler-Basic
├─ .git
├─ assets
│  ├─ css
│  │  └─ style.css
│  ├─ javascript
│  │  └─ main.js
│  └─ videos
│     └─ subway.mp4
├─ index.html
└─ README.md

Technologies

  • Bootstrap
  • Google Fonts
  • Fontawesome
  • JavaScript
    • jQuery
    • Momentjs
  • Firebase

Install

To clone this project to your device, type the code below to your git bash:

git clone https://github.com/itshally/Train-Scheduler-Basic.git

Then in the path assets/javascript/main.js, make sure to configure the lines 2-10 with your own Firebase SDK Snippet. You can find it under your project's settings.

var  firebaseConfig  =  {
	
	/**
	* This part is auto filled
	* It includes apiKey, authDomain, databaseURL, projectId, storageBucket,
	* messagingSenderId, and appId
	**/
	
};

Then on the left sidebar of your project's firebase, click the Database. For this project, I'm using the Realtime Database.

Once you clicked it, go to the Rules and configure the code into this:

"rules": {
    ".read": true,
    ".write": true
 }

Usage

I'm deploying it with Github Pages. Here is a guide for deploying it to Github Pages if ever you encountered some problems: :point_right: How to effortlessly create a website for free with GitHub Pages (...)

Screenshots

Under Construction Image

Demo

Click this live preview to see this page.

Author

@itshally

train-scheduler-basic's People

Contributors

itshally avatar

Forkers

zcui1989

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.