April 26, 2017

Quick HTTP Server with boot clj

Quickly Serve Static Files with boot

Here's a quick Pro Tip: want to quickly serve some static files with clojure? No need to create an entire project or even a new directory. Just cd into the directory with your static files, and use the following command:

boot -d org.clojure/tools.nrepl:0.2.11 -d pandeiro/boot-http serve -d . watch

Then just browse to http://localhost:3000 to see your site.

This has come in handy so many times for me, hope it is useful for you as well.

Tags: clojure boot clojurescript