Fork me on GitHub
#hyperfiddle
<
2023-04-02
>
Aviv15:04:42

Hey everyone, pretty new here 🙂 I’m trying to run the https://github.com/hyperfiddle/electric/blob/master/src-docs/user/demo_reagent_interop.cljc demo example locally, but i’m getting this error; any idea why?

✅ 2
xificurC15:04:26

Hi! Did you run npm install?

Aviv15:04:29

Thanks for your help! Yes, i did, for some reason the link for this demo is commented, https://github.com/hyperfiddle/electric/blob/master/src-docs/user/demo_index.cljc (btw i think the react & react-dom deps are missing in the package.json)

Dustin Getz16:04:18

You caught us refactoring repos, demos are being moved out of the library repo

Dustin Getz17:04:36

I've added the Reagent demo here in a branch: https://github.com/hyperfiddle/electric-examples-app/tree/wip/more-demos, note the branch "wip/more-demos"

Dustin Getz17:04:18

(I don't want to deploy the tutorials app right now while people are on it)

Aviv08:04:49

Oh, thank you! i’ll look at the branch you sent

🙂 2
Dave Mays22:04:33

Sorry to need my hand held a bit.. Any hints on how to get the XTDB demo below to run? https://github.com/hyperfiddle/electric-xtdb-starter xtdb/entity in todo_list.cljc reports that xtdb.api is aliased but not loaded. Deps.edn does seem to include some XTDB already. Terminal error reports: Starting XTDB... Execution error (AssertionError) at user/start-xtdb! (user.clj:11). Assert failed: (= "true" (System/getenv "XTDB_ENABLE_BYTEUTILS_SHA1"))

✅ 2
Dustin Getz23:04:09

the env var needs to be set, see readme

Dave Mays23:04:50

ah sorry should have started there - thanks!

🙂 2
Dave Mays23:04:32

Runs great 🙂 It's so foreign and amazing to see just 80 lines of code doing UI like this.. (not to discount what Electric is doing in the background of course).

🙂 4