mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-08 10:26:35 -06:00
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.
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.