Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wanted to try out ClojureScript a while ago, but found the tooling around it very complex since I also didn't have any experience with Clojure and Leiningen. Is there a straightforward starter guide around?


ClojureScript Up and Running is actually pretty good. Lein I've gotten to know simply by using it, getting snippets from blogs here and there. Once I get better with it, I'm curious to see if I could use it for Java builds. It's the build tool Java ppl have been waiting for I think.


I'm going through "ClojureScript Up and Running" right now, and I'd also recommend it.

However, for folks who just want to give cljs a try, lein-cljsbuild does make it pretty easy at this point. Once you have lein and the lein-cljsbuild plug-in installed, the basic information on how to get a project up and running is here:

https://github.com/emezeske/lein-cljsbuild#just-give-me-a-da...

They also include example projects in the lein-cljsbuild repo that make use of some of the popular clojure web libraries like ring and compojure:

https://github.com/emezeske/lein-cljsbuild/tree/master/examp...


It used to be a PITA, it's still not perfect but much better. take a look at lein-cljsbuild (https://github.com/emezeske/lein-cljsbuild) to create you project, there you can just create an html and add the resulting js in the html, so you can test in the browser. No need for web servers or anything.


Modern CLJS does a pretty good job of guiding you through Clojurescript's tooling:

https://github.com/magomimmo/modern-cljs




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: