u/joshlemerin r/Clojure • Recommends
Wire up ClojureScript SPA to Clojure backend (part 1)
4.1K subscribers • 10 videos on Hallway
Intermediate. Assumes working knowledge.
3.5K views5 years ago1 recommendation
Web developmentProgramming languagesLisp and ClojureVue, Svelte, Angular and othersFull-stack frameworks
How to build a backend for a ClojureScript single-page application using Aleph, Reitit, and the Crux database.
Followup video available here: youtu.be/coNzTkrcAIc 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: github.com/danownsthisspace/crux-db-front-end End Repo: github.com/alndvz/crux-db-front-end-w-backend Libraries Used: Server: github.com/clj-commons/aleph Routing: metosin.fi/blog/reitit/ Content Negotiation: github.com/metosin/muuntaja Mount: github.com/tolitius/mount/blob/master/doc/clojurescript.md Crux Database: github.com/juxt/crux Show front end Intro Create Deps.edn Create src folder and start REPL Serve static assets through webserver Setup Mount Serve index.html Serve Assets Create create/article endpoint Store article in Crux DB Return articles from the serverWhat people say. Recommended as a practical walkthrough for connecting a ClojureScript frontend to a Clojure backend.
u/joshlemerin r/Clojure • Recommends