Files
dolt/samples/js/counter
cmasone-attic dd92a06559 JS: Make Database a mutable API that vends immutable Datasets (#2636)
Noms SDK users frequently shoot themselves in the foot because they're
holding onto an "old" Database object. That is, they have a Database
tucked away in some internal state, they call Commit() on it, and
don't replace the object in their internal state with the new Database
returned from Commit.

This PR fixes #2589 by changing the Database and Dataset JS API to be
in line with the proposal there.
2016-09-28 16:50:57 -07:00
..
2016-07-12 16:02:32 -07:00
2016-08-30 16:11:21 -07:00

js/counter

counter uses noms/js to read and write a simple incrementing counter.

Getting Started

noms serve /tmp/noms &
cd ../../samples/js/counter
pushd ..
npm install
popd
npm install
node . http://localhost:8000:counter

You only need to do the npm install calls once. After that you can use npm run build or npm run start for dev mode.