Finding your way home with Clojure
Learning a new technology is much more fun when you actually have a mission. So I decided to make a little web app that can show the departure times of streetcars in Toronto.
Running the App
To run this app in development mode you will need to have Leiningen 2.0 installed. Then you can just do:
$ cd departures-board $ lein ring server-headless
The dashboard will run on http://localhost:3000/index.html
You can also create a
war file and then drop it in a servlet container like Tomcat or even JBoss.
$ cd departures-board $ lein ring uberwar $ cp target/departures-board-0.1.0-SNAPSHOT-standalone.war $DEPLOYMENT_DIR/
The app has just one file system dependency: it needs to be able to create a
~/.departures-board directory where it will store route information.