r/Clojure • u/PolicySmall2250 • Sep 03 '24
GitHub - adityaathalye/usermanager-first-principles: A "from first principles" variant of "usermanager-example", the tutorial Clojure web application by Sean Corfield.
https://github.com/adityaathalye/usermanager-first-principles
24
Upvotes
View all comments
Show parent comment
2
u/seancorfield Sep 04 '24
It isn't a REST (or even REST-like) API. They are regular URLs in a plain ol' HTML application.
The example app follows the same pattern as the original version (and its variants using XTDB instead of H2/SQLite, and using Polylith to organize code), and the other variants (e.g., using reitit/Integrant instead of Compojure/Component).
The intent of all these examples is to show how Clojure's approach to web apps is based on selecting a combination of libraries and some basic core functionality, rather than any sort of framework.
I would welcome additional variants, using HTMX for example, or even using an SPA frontend (and that would be the place for a REST API).