This is a simple demo project built with Clojure for a talk about Clojure in practice and covers the basics of a simple web application.
For this project you need Leiningen and of course a current JDK.
Furthermore, you should install ImageMagick, e.g., if you're on Mac OS and using homebrew:
brew install imagemagick
lein cljsbuild once
lein ragtime migrate
lein ring server
This will start a webserver which is listening on port 3000 and open a browser (if you don't want a browser window to open automatically try server-headless
instead of server
and navigate to http://localhost:3000/).
- Slides 'Clojure in Practice'
- Learning Clojure in the browser
- Documentation for Clojure / CheatSheet
- Documentation for Leiningen
Here is a list of the dependencies and their documentation:
- Ring
- Compojure
- Hiccup
- clj-http
- Hickory
- Yesql
- Ragtime
- java.jdbc
- h2
- im4java
- ClojureScript
- dommy
- cljs-http
- core.async
Copyright 2014 innoQ Deutschland GmbH. Published under the Apache 2.0 license.