This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-27
Channels
- # beginners (80)
- # boot (5)
- # cider (4)
- # cljsrn (3)
- # clojure (83)
- # clojure-russia (1)
- # clojure-spec (15)
- # clojurescript (20)
- # community-development (8)
- # cursive (6)
- # emacs (5)
- # fulcro (14)
- # hoplon (71)
- # off-topic (6)
- # om (2)
- # onyx (33)
- # parinfer (3)
- # re-frame (21)
- # reagent (20)
- # spacemacs (2)
- # specter (4)
- # vim (8)
Is it possible to have an entire web stack (nginx <-> webserver <-> webbapp <-> databaseconnector) entirely in ClojureScript without having the need to install Java?
@motoom I don’t know for sure, but I would say that the first thing I’d think “oh, no, that’s not a thing in pure Javascript” would be a database connection driver. Now, if your data storage exposes a REST or GraphQL API for CRUD operations then you might be in business, but if you’re planning to talk directly to some SQL DB, I suspect your’e not going to find JS implementations for that.
though it appears this is an area where my knowledge is simply outdated - assuming you can/do target node for your backend runtime: https://www.npmjs.com/package/pg https://www.npmjs.com/package/mysql
@motoom do consider that the jvm will perform better, if time / CPU / RAM matter it's a better choice
but yeah, there's self hosting cljs on node (lumo)
@noisesmith Yup, I've lumo installed on my computer. I was just wondering if I can use it to implement a web application without any dependencies on the JVM or tools that need the JVM. I understand that if Lumo runs under Node, it can just use express and other goodies from that ecosystem?
@chris_johnson Thanks I'll check out those database connectors.
yeah, I will too hehe. Thanks for asking a question that got me to accidentally teach myself something I didn’t know!
@motoom right, yes that works, but just be aware you could get more done with less hardware if you used the jvm, that's all.
yeah, that's not a valid name
right
you could make it -3...
it just can't lead with a number
oh wait, not -3...
but _3..
would work, heh