clojurescript Creating a New Project


Create a new project with the Leiningen figwheel template:

lein new figwheel hello-world

Run Figwheel:

cd hello-world
lein figwheel

After a moment it will start a development webserver and open the page in your browser.

It also opens a Clojurescript REPL connected to the browser. Try entering (js/alert "Test"): you should see an alert pop up in the browser.

Try editing hello_world/core.cljs. It will automatically refresh in your browser when you save it. You can use reload functionality similarly to the REPL by adding prints and seeing results in the Javascript console.