Skip to content

NoFearForBeer/Angular2-Team-Project

Repository files navigation

Sofia Transport - an Angular2 Application

This project is part of the Angular 2 Single Page Applications course at Telerik Academy .

  • Check the demo hosted at heroku-cloud Live

    • Please note that the first time login or register could be very slow (caused by REST server)
  • Check the live demostration of the application here

  • Check our application at Telerik Akademy Showcase - System

Team Members

Requirements

  • node 6.9.1
  • globally installed npm, typescript, tslint

Installation

  • > npm install

  • > npm start - you must open the browser at http://localhost:3100/

  • > tslint -c tslint.json app/**/*.ts - checks for the warnings from TSLint

REST Server (Web Api ASP)

Auto generated users (Administrators):

UserName Password
admin password
batman password
John password

address http://localhost:3200/

For more information regarding the rest server please check here

Project Description

The purpose of the application is to allow users to buy tickets for the public transport in Sofia. Users can charge their accounts, buy and activate tickets. When a ticket is bought, a QR code is generated. After the purchasing, the ticket can be activated online or via the scanners present into the vehicles.

Additionally, users can read the news posted by the Sofia Public Transport Team and comment them.

The application consists of:

  • public part (accessible without authentication)
  • private part (available for registered users)
  • administrative part (available for administrators only)

Public Part

Not register users can only access the public part of te application, which consist of:

  • Home Page - showing the map of the public transport in Sofia home page

  • News Page - shows all the news ordered by creation date news page

  • News Details Page - shows the selected news and the list of the related comments news details page

  • Ticket Prices Page - a table containing all available tickets along with their prices. ticket price page

  • And of course, users can Register/Login login register

Private Part

Additionally, registered user have access to several other part of the application:

  • Add/Delete comment add/delete coments

  • View their profile profile - view

  • Modify their profile profile - view

  • Charge account charge account

  • Buy Tickets buy ticket buy ticket

  • View and Activate Tickets view tickets
    view tickets

Administration Part

The administrator of the page is allowed to:

  • Post/Delete news post/delete