An open API service indexing awesome lists of open source software.

https://github.com/code-matt/mbta_health

Network graph visualization of the MBTA subway and commuter rail.
https://github.com/code-matt/mbta_health

Last synced: about 1 year ago
JSON representation

Network graph visualization of the MBTA subway and commuter rail.

Awesome Lists containing this project

README

          

# MBTA_Health

## ( very much work in progress )

### http://mbta-health.herokuapp.com/
![Screenshot](screenshot.png)

##todo
* ~~Get alerts for all stations every 30secs and pipe them in via websocket~~
* Add in details(schedule/alerts) pane for stations/routes when one is selected (in progress )
* Update station nodes color in realtime depending if trains are running on time or not( right now they do for alerts )
* ~~Refactor component structure~~
* Refactor types and make interfaces
* Upgrade to RC6 :(

## Installation
!! You need an API key from the MBTA in order to seed and run this project.
Place it inside .env ```MBTA_KEY=```
```
cd MBTA_Health
bundle install
rails db:create
rails db:migrate
rails db:seed
rails runner "app/POROS/seed_graph.rb"
```
```
cd client
npm install
ng env:init
```
ng env:init will create env.json and app-env.interface.ts
```
env.json
{
"baseUrl": "http://localhost:3000",
"wsUrl": "ws://localhost:3000/cable"
}
```
```
app-env.interface.ts
export interface AppEnv {
baseUrl: string;
wsUrl: string;
}
```
```
ng env
ng build
rails s
```