Tramboard is a station board for the trams and public transport in Switzerland. It is optimized to work for the city of Zurich and will indicate real-time information using the ZVV Mobile API. It will work as well for other towns in Switzerland but then the infos will not be real-time.
This is a rewrite of the original version at Tramboard using clojure and om.
The site is currently deployed on http://www.timeforcoffee.ch. Here is a quick look :
You will need Leiningen 2.0.0 or above installed.
To start a web server for the application, run:
lein ring server
You also need to compile the ClojureScript and Less in order for the program to work.
To compile the clojurescript, run:
lein cljsbuild once
Alternatively you can use figwheel. That will run cljsbuild auto
and refresh the browser with each change:
lein figwheel
To compile and watch the Less files, run:
lein gulp
If lein figwheel
is running at the same time, the CSS changes will be automatically reloaded by the browser.
If you want to develop locally, you just need to run those 2 commands (in separate terminal windows):
lein ring server
lein develop
The project is setup to run on Heroku using an Uberjar containing jetty and the app. To compile the Uberjar, run:
lein uberjar
Available under GPLv3