GithubHelp home page GithubHelp logo

stefan-angelov / ng-train-manager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from samuil4/ng-train-manager

0.0 1.0 0.0 424 KB

License: MIT License

JavaScript 7.49% TypeScript 78.97% HTML 12.70% CSS 0.83%

ng-train-manager's Introduction

Train dashboard manager

Specification

This task should follow the following specification:

There will be 2 user roles: Admin (can edit) and User (can only filter and search)

Modules

  • Train Dashboard Module
    • View all
    • View by ID
    • Create new
  • Wagons
    • View all
    • View by ID
    • Create new
  • Home Module
  • 404 Module
  • Login - Optional
  • register - Optional
  • Forgot password - Optional
  • Search TBD

Train

A train must contain the following data: ID, name, Departure destination, Arrival destination, Departure time, Arrival time, Confirmed status, Wagon composition, Number of reserved seats.

  • id: number - unique ID
  • name: string - name of the train
  • departureDestination: string - name of city
  • arrivalDestination: string - name of city
  • departureTime: timestamp
  • arrivalTime: timestamp
  • confirmed: boolean - shows the status of the train, true means that the train will departure on time
  • wagons: Wagon[] - if a wagon is removed remove it form the trains that has it
  • reservedSeats: number

Wagon

A train wagon must consist of the follwoing information: wagon class (1,2,3), wagon type (seat, sleep, buffet), number of seats.

  • id: number - unique ID / can not assign wagon to multiple trains
  • wagonClass: number - 1 | 2 | 3
  • wagonType: string - seat | sleep | buffet
  • seats: number - number of available seats

Trains Overview / Schedule Dashboart

Display list of all trains. The user can filter the trains by entering: ID(name), Departure destination, Arrival destination, Confirmed status, etc.

Role Admin

Role User

API

https://github.com/samuil4/ticket-reservation-demo-server

End points

  • GET/trains
  • GET/PUT/POST/DELETE trains/:id
  • GET/PUT/POST/DELETE wagons
  • GET/PUT/POST/DELETE wagons/:id

ng-train-manager's People

Contributors

samuil4 avatar stefan-angelov avatar

Watchers

 avatar

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.