I have the starter project working with xtdb2 now. It's on an experimental xtdb2 branch: https://github.com/jacobobryant/biff/tree/xtdb2/starter-xtdb2
You can try it out like so:
git clone
cd biff
git checkout xtdb2
cd starter-xtdb2
clj -M:run dev
Some notable files for any who'd like to peruse the code:
• https://github.com/jacobobryant/biff/blob/xtdb2/libs/xtdb2/src/com/biffweb/xtdb.clj - implements some helper functions like submit-tx, which wraps xtdb.api/submit-tx and adds schema checking, in addition to a few more operations (`:biff/upsert`, :biff/update, :biff/delete). Implementation is much simpler than the version of biff/submit-tx for xtdb1.
• https://github.com/jacobobryant/biff/blob/xtdb2/starter-xtdb2/src/com/example/app.clj and https://github.com/jacobobryant/biff/blob/xtdb2/starter-xtdb2/src/com/example/auth.clj - xtdb2 usage examples
It's currently hard-coded to set up an in-memory node fyi.
This'll stay on that branch until xtdb2 is stable. Mainly I just wanted to give it a spin and see how the current state of things is in regard to Biff's needs. Planning to write up a blog post next.Going to do some Biff bragging here. I built this little daily puzzle game about daily puzzle games using Biff and Reagent, and plenty of wise guidance from the good folks at Clojure Camp: http://dig1000holes.com/digs/wastrle/ It's been a great learning project and has left me eager to make more!
will try this out soon!
is the number of characters you can use for each language the same each day? or does it match the number of characters needed for the solution?
It matches the number needed for the solution, that way it's not just a guessing game.
hah well now I know for next time 🙂 my strategy of guessing 1 2 3 4 5 6 didn't work out unfortunately
>
I beat #Wastrle at Balanced Ternary,
> English, and Binary! Cause the answer was
> also my password.
>
> Digging streak: 🕳️🕳️
> (as of 2024-05-09)
>
>
got it this time, on the first try!
Fyi I noticed that clicking the "share" button caused this error to show up in the console: Uncaught TypeError: navigator.clipboard is undefined
I did a quick search and it looks like it's because the site doesn't have an HTTPS certificate set up: https://stackoverflow.com/a/51823007/1258629. If you want to add one it's pretty easy; just ssh into the droplet and do certbot --nginxHuh. I thought I had the HTTPS certificate set up. I'll give it a shot though.
I don't know if this was the cause, but it looked like I had the HTTPS certificate set up for http://www.dig1000holes.com, but not http://dig1000holes.com. And I think I've fixed that, but I haven't had a problem with the share button, so I haven't tested anything.
ah interesting. does the share button work for you in production or just locally?
in any case looks like it's working for me now 👍
Oh, that's good! Yeah, it was working in both production and locally for me. But before I fixed the certificate with http://dig1000holes.com, I was automatically being redirected to http://www.dig1000holes.com.
Thanks for the help, by the way!
ah makes sense.
any time!