https://github.com/bdon/transit
Transit delays dashboard
https://github.com/bdon/transit
Last synced: about 1 year ago
JSON representation
Transit delays dashboard
- Host: GitHub
- URL: https://github.com/bdon/transit
- Owner: bdon
- License: bsd-2-clause
- Created: 2014-02-20T01:57:08.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2020-02-16T00:51:52.000Z (over 6 years ago)
- Last Synced: 2025-03-24T12:12:18.484Z (about 1 year ago)
- Language: Go
- Homepage: http://bdon.org/transit
- Size: 20.2 MB
- Stars: 22
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# bdon.org/transit #
## Prerequisites ##
* a Go distribution for Linux or Mac
* the `gox` cross-compiler: `go get gox`
* Ansible 1.6: `brew install ansible` or via the PPA
* An Ubuntu server with at least 512 MB of memory and 20GB disk
## How to use ##
`go build .` will create the `transit` binary.
`./transit --emitFiles`: will emit schedules, stops, and route JSON files into the `static/` directory.
`./transit` : will poll NextBus, write history to `static/history`, and serve location requests on port 8080.
## Run the tests ##
API tests: `go test .`
Client tests: open `www/test/index.html` in your browser.