hanhanhan / fake_bus_client

Mock bus schedule using websockets to communicate with the fake_bus_api

Home Page:https://hanhanhan.github.io/fake_bus_client/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FakeBus Client

This is a mock bus schedule client.

It's consuming the FakeBus API over websockets.

  1. To run, first get the node package manager npm, and run npm install while in the directory to locally install packages.

  2. Make sure the flask API server is running and point the socket under Modules/APIConnection at it -- or just use the server I've set up.

  3. Use npm run dev (aliased of webpack --watch).

  4. Navigate to the webpage, and watch the schedule update once a minute. You can trigger a bus schedule delay at the server endpoint \delay.

About

Mock bus schedule using websockets to communicate with the fake_bus_api

https://hanhanhan.github.io/fake_bus_client/


Languages

Language:JavaScript 45.9%Language:HTML 44.7%Language:CSS 9.3%