antoio / appfahrt

Webapp that shows arrival and departure of trains at a specified train stop. This app represents the second project in the CAS FEE 2018 course.

Home Page:http://www.appfahrt.ch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Appfahrt v 0.8.0

Appfahrt Icon

This project is currently work in progress. 🏗

Appfahrt lets you check the stationboards from your nearest location. All mayor train, bus and tramstations in Switzerland are available and fetched from https://transport.opendata.ch.

As a registered user you are able to create and sor yourt Favorite stations.

visit go.appfahrt.ch for the current Version

Features

  • Traindata API from opendata.ch
  • PWA functionalities for best mobile experience
  • Fully configurable Dashboard
  • Find nearest station with a Google Maps integration

🔁 Dependencies

  • angular 6
  • angular material 7
  • rxjs 6
  • Google Maps 3
  • AngularFire2 5
  • Basscss 8
  • momentjs 2

⏏️ Installation

  • git https://github.com/antoio/appfahrt
  • cd appfahrt
  • rename app/config.template to app/config.ts and include keys for google maps and firbease. If the developers didn't provide you with the keys, feel free to create your own: Google Maps and Firebase
  • install dependencies yarn install
  • run dev mode: ng serve for a server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

⬆️ Deployment

For proper pwa usage the projects needs to be served via ssh (https) and in production environment.

  • ng build --prod will build the full project onto the dist/appfahrt folder
  • firebase deploy will deploy your project to firebase. Setup firebase with firebase init
  • Enjoy 😎!

🔐Security

Add following rule to prevent favorites beeing modified by unauthorized Users

service cloud.firestore {
  match /databases/{database}/documents {
    match /users/{userId}/favorites/{document=**} {
        allow read, write, update, delete: if request.auth.uid == userId;
    }
  }
}

ℹ️ About us

antonio galluccio, mad hobby scientist

michael burgdorfer, genius CEO

About

Webapp that shows arrival and departure of trains at a specified train stop. This app represents the second project in the CAS FEE 2018 course.

http://www.appfahrt.ch


Languages

Language:TypeScript 79.1%Language:HTML 17.3%Language:CSS 2.9%Language:JavaScript 0.7%