replikativ / datahike-frontend

A front-end connecting to a Datahike back-end.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A front-end to Datahike written in Fulcro. It connects to a Datahike-server instance.

Quick start

Start Datahike-frontend server

In a shell: clj -A:dev:cider-clj -J-Dtrace -J-Dghostwheel.enabled=true
Then in emacs in the project: cider-connect-clj | localhost | <the port it suggests>
In the repl: user> (start)
In the browser: localhost:4000
If restart needed after compilation pblm:
(tools-ns/refresh)
(start)

Start Datahike-frontend client

In the shell: npx shadow-cljs server
In IntelliJ's REPL: (shadow/repl :main)
If you want to use emacs then: cider-jack-in-cljs
Choose options related to 'shadow'
You might need to compile the js code here: http://localhost:9630
The nrepl is server in listening on port 9000

Datahike-server

You need to start a Datahike server as well (https://github.com/replikativ/datahike-server) on the 'admin-endpoitns' branch. It is expected to listen on port 3000.

Current status

  • It is still very early work.

  • Transacting works only when you are on the :eavt Datoms view. (I.e. on the view appearing after a query and showing each entity on a specific row, transactions do not work yet.)

  • Only query_pull type queries work.

  • Queries seem to have issues when the 'where' expression has multiple clauses.

About

A front-end connecting to a Datahike back-end.

License:MIT License


Languages

Language:Clojure 98.5%Language:JavaScript 0.8%Language:HTML 0.6%Language:Makefile 0.2%