diff --git a/.air.toml b/.air.toml new file mode 100644 index 0000000..1af2d00 --- /dev/null +++ b/.air.toml @@ -0,0 +1,52 @@ +root = "." +testdata_dir = "testdata" +tmp_dir = "tmp" + +[build] + args_bin = [] + bin = "./tmp/main" + cmd = "go build -o ./tmp/main ./cmd/main.go" + delay = 1000 + exclude_dir = ["assets", "tmp", "vendor", "testdata", "static"] + exclude_file = [] + exclude_regex = ["_test.go"] + exclude_unchanged = false + follow_symlink = false + full_bin = "" + include_dir = [] + include_ext = ["go", "tpl", "tmpl", "html"] + include_file = [] + kill_delay = "0s" + log = "build-errors.log" + poll = false + poll_interval = 0 + post_cmd = [] + pre_cmd = [] + rerun = false + rerun_delay = 500 + send_interrupt = false + stop_on_error = false + +[color] + app = "" + build = "yellow" + main = "magenta" + runner = "green" + watcher = "cyan" + +[log] + main_only = false + silent = false + time = false + +[misc] + clean_on_exit = false + +[proxy] + app_port = 0 + enabled = false + proxy_port = 0 + +[screen] + clear_on_rebuild = false + keep_scroll = true diff --git a/.gitignore b/.gitignore index e8fb14f..b8da24a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /gtfs/ /gtfs.zip /pretend-feed.bin +/tmp/ diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..bbe9527 --- /dev/null +++ b/TODO.md @@ -0,0 +1,3 @@ +- mobile +- advanced filtering +- show stops for trip \ No newline at end of file diff --git a/cmd/main.go b/cmd/main.go index 5a932fb..3a4f2ce 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -257,5 +257,8 @@ func main() { fmt.Printf("Started on port %s\n", port) - http.ListenAndServe(":"+port, nil) + err = http.ListenAndServe(":"+port, nil) + if err != nil { + log.Fatal(err) + } } diff --git a/static/index.html b/static/index.html index bb214ea..7eba1f8 100644 --- a/static/index.html +++ b/static/index.html @@ -11,10 +11,15 @@ crossorigin="" /> + + + + @@ -93,6 +121,9 @@