datastar clj sdk (testing it)
- Clojure 98.1%
- CSS 1.5%
- JavaScript 0.4%
| resources | reusable page wrapper component in handlers/common. may get rid of templates in the future.. | |
| src | fix some bugs. | |
| test | public resources now loaded. | |
| .gitignore | cleaned up connections logic and made it work for all pages | |
| claude.md | moved connections management to connections.clj | |
| deps.edn | fix some bugs. | |
| package-lock.json | cmmon page. npm concurrently to run all processes on dev. | |
| package.json | cmmon page. npm concurrently to run all processes on dev. | |
| README.md | cmmon page. npm concurrently to run all processes on dev. | |
| tailwind.config.js | using tailwind with npm. added the tailwind output styles to gitignore. | |
Setup
npm i
Running
npm start
This starts clj server, npm tailwindcss compilation, tail server logs. Chose to use npm as we already need it to build the css, and the concurrently package is pretty helpful and known.
clj server and log tail are separate so that when we run the server on a repl we dont get the logs within it- that still renders on the log file and we can focus on clj msgs/stacktraces.
TODO
-
replicate interesting examples from their example page
-
replicate some experiences I like implementing...
-
try view transition browser api
-
try out both user search in client and backend (one with client-only signals, the other with signals that interact with the server.)