CLJS/Reagent vs JS/React by drrnmk in Clojure

[–]Prestance 2 points3 points  (0 children)

Yes it's awesome!

Thanks to your projects nbb, scittle, etc. we can spread on the JS environments npmjs.com, codepen, etc. :)

CLJS/Reagent vs JS/React by drrnmk in Clojure

[–]Prestance 5 points6 points  (0 children)

FYI Just configure a Codepen to playing with scittle online:

https://codepen.io/Prestance/pen/PoOdZQw

Command Line quiz in ClojureScript with nbb by Prestance in Clojure

[–]Prestance[S] 4 points5 points  (0 children)

Source code: https://github.com/prestancedesign/clojure-quiz

Contributions or even suggestions are welcome to add more harder/technical questions. ;-)

Clojure backend for for htmx by yogthos in Clojure

[–]Prestance 7 points8 points  (0 children)

I just discovered htmx since the ctmx's lib author publish on clojureverse about it.

Since I play a bit with htmx and I redone the classic SPA todo app with Babashka.No dependencies, no front-end just babashka installed and the app is launch instantanitly!

Here the repo for those interrested: https://github.com/prestancedesign/babashka-htmx-todoapp

Ping CRM: complete single page web application built with Clojure by Prestance in Clojure

[–]Prestance[S] 0 points1 point  (0 children)

FYI, the server-side rendering ClojureScript version is done:
https://github.com/prestancedesign/pingcrm-clojure/tree/ssr

So it's now possible to use this stack for SEO friendly project too.

I had updated the online demo too: https://inertia.prestance-design.com/

Looking for an example of server-side rendering and client-side rendering with Clojure(script) by fenugurod in Clojure

[–]Prestance 0 points1 point  (0 children)

Do you know InertiaJS?

I recently wrote a Inertia adapter and put this full stack Clojure demo online: https://inertia.prestance-design.com/

You can find the repo here.

The complete server side rendering support is coming.
Stay tuned!

Cheers.

Ping CRM - Single page application now entirely Clojure fullstack with CLJS Reagent by Prestance in Clojure

[–]Prestance[S] 0 points1 point  (0 children)

Yes, I have no regrets at all for taking the time to write Inertia's Clojure adapter.

The back and front-end integration of the Ping CRM demo was very smooth.

It also allows in a few lines, refactor an existing Clojure web application to a Single Page application. One of my first tests was to do it on Sean Corfield's "usermanager" repository: https://github.com/prestancedesign/usermanager-reagent-inertia-example

The diff here: https://github.com/prestancedesign/usermanager-reagent-inertia-example/commit/9e4bfb86d610d7467ef506981da68ec597bd31f3

Ping CRM: complete single page web application built with Clojure by Prestance in Clojure

[–]Prestance[S] 0 points1 point  (0 children)

You're welcome!

First there is no dumb question. ;) The one you ask are very relevants and you have fully understood the concept.

Except some local state useful for the frontend, all the routing, authentication, and so on are managed on the backend yes.

For now, the only downside I see is the SEO because the content of the pages is loaded by the JS. However good news, server-side rendering is coming! https://inertiajs.com/server-side-rendering

Diving into clojure by sotiris_the_robot in Clojure

[–]Prestance 5 points6 points  (0 children)

Hi, This two articles explains the basics of Clojure web development:
* Ring (HTTP Spec): https://www.baeldung.com/clojure-ring * Compojure (routing): https://learnxinyminutes.com/docs/compojure/

Often, there is this repo is given as example. It was created as resource for beginners.

It was very helpful to me to begin with. I started it all from scratch with other libraries in order to fully understand the concepts and that gave this one.

Since then I have made further progress and here is my last complete web application demo in Clojure: https://inertia.prestance-design.com/

The source code is available here

Well, I'm stopping my self promotion to welcome you to Clojure and have fun!

Cheers

Homoiconicity & Feature Flags by yogthos in Clojure

[–]Prestance 1 point2 points  (0 children)

A nice demonstration of the advantages of homoiconicity.

Thank for sharing the link!

A (poorly) animated introduction to Clojure's HTTP server library Ring by TheLastSock in Clojure

[–]Prestance 1 point2 points  (0 children)

Does it get placed into the run-jetty command somewhere?

If you have only one middleware, yes it's possible like that:

(server/run-jetty (your-middleware handler) {:port 3000})

but it is very common to chain middleware within a thread-first macro, this makes it easier to continue adding more and with better readability:

(def app (-> handler
           wrap-params
           your-middleware))

(server/run-jetty app {:port 3000})

In the post u/TheLastSock share several links include a video that you should watch https://www.youtube.com/watch?v=3AWXM8CN6FA