Skip to content

Instantly share code, notes, and snippets.

@roman01la
roman01la / article_running-web-server-in-clojure.md
Last active January 20, 2017 23:28
Running web server in Clojure

Running web server in Clojure

Install Boot build tool: brew install boot-clj.

For JS people: Boot has a notion of tasks, so it's kind of similar to Grunt/Gulp.

build.boot is yours package.json and gulpfile.

ring-jetty-adapter provides Java's Jetty web framework, compojure is a routing library and hiccup is a lib for writing HTML. The task is defined using deftask macro, it runs run function which we :refer to.