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.
- Host: GitHub
- URL: https://github.com/code-matt/mbta_health
- Owner: code-matt
- Created: 2016-08-29T15:51:36.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-15T19:23:21.000Z (over 9 years ago)
- Last Synced: 2024-10-19T05:21:10.745Z (over 1 year ago)
- Language: Ruby
- Size: 17.7 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MBTA_Health
## ( very much work in progress )
### http://mbta-health.herokuapp.com/

##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
```