Skip to content

linuxunsw/trip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚉 trip

Sydney public transport, in your terminal.

Demo


🛠 Setup

Requirements

Build the database

./makedatabase.sh /path/to/unzipped/gtfs

This creates app.sqlite with GTFS data.

Run the app locally

go build -o trip -tags 'fts5' main.go
./trip

SSH Server Mode

trip can be run in SSH mode to allow users to connect via ssh:

Edit defaultSSHAddr in main.go to change the port if needed. Then build with permissions to bind to privileged ports and run in ssh mode:

go build -o trip -tags 'fts5' main.go
sudo setcap CAP_NET_BIND_SERVICE=+eip trip
./trip --ssh

# then connect from another terminal
ssh [email protected] -p your_port

About

sydney public transport for your terminal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors