Commit Graph

4 Commits

Author SHA1 Message Date
Florian Schroedl
5ab102b550 refactor: remove auth system
Remove Bearer token auth, per-user group ACLs, and auth_test.clj.
The server now accepts all requests without authentication.
2026-04-16 19:17:46 +02:00
Florian Schroedl
38a15b7a34 fix: CLJS watch mode missing todomvc from cljs_deps.js
Two issues caused "Loading from local store..." after tmux restart:

1. Watch path only included `src/`, so `example/todomvc/` sources
   weren't compiled on the watcher's initial build, leaving
   pocketbook.todomvc out of cljs_deps.js.
   Fix: `-w "src:example/todomvc"`

2. Stale output dir from previous builds caused incremental compile
   to skip regenerating cljs_deps.js.
   Fix: `cljs:clean` task (deletes js output) runs before `cljs:watch`.
2026-04-04 18:38:22 +02:00
Florian Schroedl
570a087f53 refactor: move TodoMVC example into example/ directory
- example/todomvc/pocketbook/todomvc.cljs — app source
- example/todomvc/todomvc.html — page
- example/todomvc/js/ — compiled output (gitignored)

Server static file serving is now filesystem-based via --static-dir
flag instead of classpath resources. No static dir by default (API
only); bb server passes --static-dir example/todomvc.

Removed resources/public/ — library has no bundled static assets.
2026-04-04 17:05:12 +02:00
Florian Schroedl
d5a0082b67 chore: add bb.edn task runner
Tasks: server, cljs, cljs:watch, test, dev (tmux), dev:stop, dev:restart
2026-04-04 16:48:29 +02:00