biff

A web framework + self-hosted deployment solution for Clojure. Repo: https://github.com/jacobobryant/biff. Docs: https://biff.findka.com
ozzloy 2020-08-16T04:03:19.113700Z

@foo what's your favorite testing framework for biff itself?

2020-08-16T04:43:58.113900Z

I just do manual testing

ozzloy 2020-08-16T05:43:39.115800Z

er... i'm thinking about writing test cases for biff to understand how biff works and how testing in clojure works. i'm open to doing anything. if you had a framework you like, i'd do it in that and then it might be helpful for you too.

ozzloy 2020-08-16T05:45:30.117500Z

how do i connect cider to it? i would like to have a repl in emacs connected to the running page, but i tried just doing cider-jack-in-cljs, it complains that a server is already running.

ozzloy 2020-08-16T05:45:57.118200Z

i've been able to connect sibling repls before in other test projects, but i'm not really sure how i did, or if that applies here

ozzloy 2020-08-16T05:54:53.120500Z

i also tried killing the server and running cider-jack-in-cljs, shadow-cljs, :app. it successfully opened localhost:9630, but not <my-ip>:9630, also i get nothing on localhost:8081 or <my-ip>:8081. here's a dump of the cider-repl buffer https://wtools.io/paste-code/b1NO

ozzloy 2020-08-16T06:09:53.121600Z

and here's what happened when i tried running cider-jack-in-cljs after creating a vanilla biff/example, running ./task setup and running and killing ./task dev https://wtools.io/paste-code/b1NP

2020-08-16T07:23:41.125400Z

I'd say just go with clojure.test first. Not as fancy as some other options but it has the essentials. I haven't used emacs/cider myself (I use vim + fireplace) and am unfamiliar with how exactly the tooling works in emacs land, but biff starts an nrepl server on port 7888 by default, so see if you can connect to that explicitly. currently, shadow-cljs and biff run in separate jvms, so that's why killing the biff process will leave shadow-cljs running on port 9630. In Findka's codebase I've changed it so shadow-cljs runs in the same process as biff, but I haven't put that code into the biff repo yet.

2020-08-16T07:44:45.126600Z

that's for a backend repl anyway, for frontend you can connect to shadow-cljs's nrepl server on port 7889