This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-11
Channels
- # announcements (1)
- # beginners (35)
- # calva (28)
- # cider (14)
- # cljdoc (6)
- # cljs-dev (42)
- # cljsrn (2)
- # clojure (14)
- # clojure-spec (6)
- # clojure-uk (1)
- # clojurescript (13)
- # data-science (1)
- # emacs (3)
- # joker (3)
- # kaocha (1)
- # klipse (1)
- # leiningen (3)
- # off-topic (4)
- # pathom (10)
- # rewrite-clj (1)
- # shadow-cljs (28)
- # sql (5)
what’s the most pleasant environment for developing cljs, with code completion and go-to-definition.
@thheller i am using shadow, for (ns app.main (:require [“md5” :as md5] [“fs” :as fs])) (println (md5 “text”)) (fs/readFileSync “deps.den” “utf8”)
so one has to remember all the functions and constantly check the api reference. that is a little complicated.
I didn't try it, but emacs has plugin for that: https://github.com/rksm/clj-suitable
Is there a recommended way to persist data locally in an electron app with ClojureScript?
So far I could not find an embedded database running on node (or something in this direction) which would be easy to use with ClojureScript.
Is my best bet to write an NeDB
wrapper?
I’m still a CLJS newbie, but I have some experience in vanilla Electron. I’d start by considering localStorage if you need a simple key-value store mostly accessed by the renderer. 🙂
I'm a newbie too so welcome in the club! 🙂 I considered localStorage but I believe that it is too limiting in expressiveness and possible size as the data which will be handled can grow every day by lots
There are for now only a few entities though so something rather simple but with less limits would be nice. I also consider IndexedDB or similar but I don't have any experience with it. Maybe Sqlite might be a safer bet?
Actually I just found https://github.com/replikativ/konserve which might fit my needs - I'll have to evaluate it. IndexedDB seems to be just what I'm looking for - I just have to figure out how to best talk to it