Can I write & run entire server with lumo?

clojurescript

#1

Hey guys!
I’m wondering If I can use lumo instead of node to run my server on it.
I want to write simple server in clojurescript and be able to use some libraries from js ecosystem like passport.js and others.
Thanks!


#2

There is a nice article on the topic https://lambdaisland.com/blog/2017-05-02-nodejs-scripts-clojurescript

Check out this repo for examples of writing nodejs express servers with clojurescript https://github.com/lambdaisland/npmdemo

There is also https://macchiato-framework.github.io/

I am giving clojurescript + nodejs a try for my next app. So far so good. I chose http://shadow-cljs.org/, since the story for npm dependencies is really good and also very happy with it for my front-end app.


#3

Thanks for the links!
So, shadow-cljs compiles down to javascript, right? And does lumo behaves different?


#4

As far as I know lumo is “self-hosted” clojurescript. Meaning that there’s not more dependency on the JVM to compile clojurescript to js, it uses the javascript version of google closure compiler.

Shadow cljs uses the JVM behind the scenes, making use of the Java closure compiler.

Think the JVM version of closure compiler is a bit more advanced. Also the npm integration story might be better in shadow-cljs.

Also shadow-cljs is really actively developed/maintained, a lot of nice features have been added recently, lumo seems a bit less active.