Fork me on GitHub
#clojurescript
<
2018-11-01
>
aghiuru13:11:17

hello! it's been 2 years since i last used clojure/clojurescript. what would be a good template to start with for a clojure + clojurescript web app?

aghiuru13:11:22

i used chestnut in the past but now the web app won't start because of a js/ReactDOM that is missing, and i really don't want to debug after so long, i'd rather start working right away 🙂

aghiuru13:11:03

thank you!

tavistock13:11:44

i just used lein new chestnut project +reagent +re-frame (a while ago) and it worked. Maybe the default one is broken?

aghiuru13:11:06

@tavistock i tried running an old project — so is chestnut still a viable choice then?

tavistock13:11:06

Yea it’s still maintained and works well for most projects

tavistock13:11:23

If you know you’re going to want to fiddle with everything i would still suggest it because you can cannibalize a chestnut project for parts

aghiuru13:11:25

chestnut is more or less what i need i think, i’ve played a bit with it in the past so it’s familiar — there’s so many parts to it tho and when something goes wrong it’s hard for me to know where to start debugging

aghiuru13:11:05

but good news i’ve just created a new project and it does work :thumbsup:

aghiuru13:11:15

thank you so much @tavistock

aghiuru13:11:52

now on to moving old code piece by piece

tavistock13:11:17

when i change chestnut i tend to do so very slowly

tavistock13:11:37

with more commits than I think i will need

aghiuru14:11:10

yes i think that’s a good approach

jenny16:11:16

ooh it's good to know about chestnut since i was going to go with the basic re-frame template

jonpither18:11:07

is it possible to compile/eval clojurescript in clojurescript, when the clojurescript has been advanced compiled?

dnolen19:11:13

@jonpither Closure advanced compilation renaming prevents that from working

👍 4
dnolen19:11:25

you can no longer look up vars etc.

dnolen19:11:08

I’ve been thinking a bit more about goog.reflect, theoretically you could probably make it work with that

dnolen19:11:12

but it seems like a hassle

dnolen19:11:56

and not sure of the point since really with self-hosted you can’t really eliminate anything (the main advantage of advanced)

jaawerth20:11:16

seems like saving is broken on cljsfiddle - is there a shareable equivalent out there, specifically for reagent stuffs? I'm guessing hyperfiddle is probably the way to go. That or doing some custom setup on https://repl.it/languages/clojure with reagent uploaded to it and setting it up to compile and serve cljs