transit

command module
v0.0.0-...-53f0dd8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2020 License: BSD-2-Clause Imports: 20 Imported by: 0

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL