ChrisRu / trains-frontend

πŸš… Frontend for a train project to show which part of the train is most crowded

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Train Crowdedness Visualizer

Visualize the crowd in a train, so people can enter and leave more quickly.

CLI Commands

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# test the production build locally
npm run serve

For detailed explanation on how things work, checkout the CLI Readme.

API

url: http://trainemulator.azurewebsites.net/ endpoints:

GET / Get all trains

GET /{id} Get train by id

POST /random { "enabled": "true" | "false" } Toggle the randomize interval on or off

POST /{id}/edit { "destination": "string", "startingPoint": "string" } Edit train details

POST /{id}/{compartment}/edit { "peopleCount": "number" } Edit compartment detail

About

πŸš… Frontend for a train project to show which part of the train is most crowded


Languages

Language:JavaScript 61.4%Language:CSS 38.6%