switch backend to clojure

This commit is contained in:
Travis Shears 2026-04-16 12:04:23 +02:00
parent 99f73315b3
commit 09bf48481a
Signed by: travisshears
GPG key ID: CB9BF1910F3F7469
11 changed files with 228 additions and 159 deletions

10
backend/dev.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
# Watch for changes to .clj files and auto-restart the server
# fd -e clj: Find all files ending in .clj
# entr -r: Run the command when files change, -r flag restarts the command on re-trigger
# clojure: Clojure CLI
# -M: Use the main alias from deps.edn (if defined)
# -m game-server.main: Run the -main function from game-server.main namespace
fd -e clj | entr -r clojure -M -m game-server.main