If you want to develop a front-end application with reagent, the lein 
command is:

lein new reagent-frontend myproject

then to start the figwheel compiler (after cd-ing to your directory, as you 
did):

lein figwheel (or better: rlwrap lein figwheel , which will allow for a 
more pleasant experience in the terminal, such as using the up and down 
arrows to navigate between commands)

Works for me. I use Java 8 (to compile the clojurescript code) and clojure 
1.8.


Le mardi 1 janvier 2019 06:21:21 UTC+2, Darko Luketic a écrit :
>
> so... I don't like slack so I'm posting here.
>
> I installed leiningen and ran
> lein reagent lnfirst
>
> which created some kind of skeleton.
> I have no clue how to run it, so I
> cd lnfirst
> lein run
>
> however
>
> Welcome to lnfirst
>
> please wait while Figwheel is waking up ...
>
> (Check the js console for hints if nothing exсiting happens.)
>
> Loading failed for the <script> with source “
> http://localhost:3000/js/app.js”. localhost:3000:2:1 
> <http://localhost:3000/> 
>
> and the server is Java?
>
> Warning: implicit hook found: lein-environ.plugin/hooks 
> Hooks are deprecated and will be removed in a future version.
> 2019-01-01 04:44:30.199:INFO::main: Logging initialized @8543ms to 
> org.eclipse.jetty.util.log.StdErrLog
> 2019-01-01 04:44:30.247:INFO:oejs.Server:main: jetty-9.4.12.v20180830; 
> built: 2018-08-30T13:59:14.071Z; git: 
> 27208684755d94a92186989f695db2d7b21ebc51; jvm 1.8.0_192-b12
> 2019-01-01 04:44:30.280:INFO:oejs.AbstractConnector:main: Started 
> ServerConnector@2a534291{HTTP/1.1,[http/1.1]}{0.0.0.0:3000}
> 2019-01-01 04:44:30.280:INFO:oejs.Server:main: Started @8624ms
>
> There is so little documentation. I'm afraid I'll abandon it before I get 
> really started.
> I'm only considering it because grpc-web has a protoc plugin that creates 
> a clojurescript client, that apparently seems to be the only client that 
> really works for the web.
> I come from aa Go & Angular background (at least currently). It's all very 
> alien.
>
> - I thought reagent is for the front end only, no Java server side 
> required. I saw client and server dirs.
> - The blank skeleton app doesn't even work
> - I watched this: https://www.youtube.com/watch?v=Kv8q7jo0H6A
> It talks about local state, what about redux in this context?
> How do you solve the "related entities" problem with Reagent or 
> clojurescript? Normalization/De-Normalization.
> How do you do http requests?
>
> But the base question is, what do I have to do so "it works"?
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.

Reply via email to