Files
dolt/samples/js/splore
Ben Kalman 1e511a61c6 Let Splore open a noms path (#2356)
Currently Splore can only open a database (db=) or a hash (hash=). This
removes the hash and replaces it with the much more general path (p=).

For example, what used to be:
  ?db=http://demo.noms.io&hash=abcd
is now:
  ?db=http://demo.noms.io&p=#abcd

and of course more complex paths work, like:
  ?db=http://demo.noms.io&p=#abcd.field[42].name

I've exposed getHashOfValue in noms.js.
2016-08-12 16:47:26 -07:00
..
2016-08-12 16:47:26 -07:00
2016-06-05 02:37:28 -07:00
2016-06-05 02:37:28 -07:00

Splore

Splore is a general-purpose debug UI for exploring noms data.

splore and counter

Example

# Create some data
cd "$GOPATH/src/github.com/attic-labs/noms/samples/go/counter"
go build
./counter /tmp/sploretest::counter
./counter /tmp/sploretest::counter

# Build Splore
cd ../../js/splore
./build.py

# Launch Splore with noms-ui
cd ../../../cmd/noms-ui
go build
./noms-ui ../../samples/js/splore db="/tmp/sploretest"

Then, navigate to the URL printed by noms-ui, e.g. http://127.0.0.1:12345?db=xyz.

Develop

Same as the example, but:

  • ./build.py is only necessary the first time.
  • Also run npm run start, to continually build a non-minified (and thus debuggable) build.