DEV Community

Cover image for How to Set Up Shadow CLJS
Kelvin Mai
Kelvin Mai

Posted on

1 2

How to Set Up Shadow CLJS

This is a simple walkthrough of how to set up a shadow cljs project

Included in video

  • Configuring a shadow-cljs edn file
  • Adding clojurescript support in the chrome console
  • Adding CLJS/JS dependencies and interoping with existing Javascript libraries

The completed shadow-cljs.edn file will look like this

{:source-paths ["src/cljs"]
 :nrepl {:port 9000}
 :dependencies [[cider/cider-nrepl "0.21.0"]
                [binaryage/devtools "1.0.2"]
                [lilactown/helix "0.0.13"]]
 :builds {:app {:target :browser
                :output-dir "resources/public/js"
                :modules {:main {:init-fn app.core/init}}
                :devtools {:preloads [devtools.preload]
                           :http-root "resources/public"
                           :http-port 3000}}}}

Resource Links

Shadow CLJS
Shadow CLJS Docs
Lokeh/helix

Follow and support me

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

nextjs tutorial video

Youtube Tutorial Series 📺

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay