Wire up ClojureScript SPA to Clojure backend

Опубликовано: 07 Июнь 2026
на канале: Daniel Amber
3,541
108

Followup video available here:    • XTDB history API - Clojure Tutorial  

Allan and I cover how you could go about creating a backend to your existing front-end project using Clojure 🥷🏽. The edit on this one may be a bit choppy, because it was cut down a fair bit :p

Start Repo: https://github.com/danownsthisspace/c...
End Repo: https://github.com/alndvz/crux-db-fro...

Libraries Used:

Server: https://github.com/clj-commons/aleph
Routing: https://www.metosin.fi/blog/reitit/
Content Negotiation: https://github.com/metosin/muuntaja
Mount: https://github.com/tolitius/mount/blo...
Crux Database: https://github.com/juxt/crux

00:07 Show front end
00:30 Intro
00:57 Create Deps.edn
03:20 Create src folder and start REPL
03:55 Serve static assets through webserver
07:00 Setup Mount
11:42 Serve index.html
14:16 Serve Assets
16:37 Create create/article endpoint
24:10 Store article in Crux DB
32:00 Return articles from the server