Simple example scripts showing how to use the Model
and ModelInstanceDocument
streams instead of TileDocument
using Ceramic packages directly (no ComposeDB).
Both the tile-document.js
and model-instance-document.js
scripts use the same JSON schema, defined in the common.js
file.
pnpm install
- Have a local Ceramic node running on
http://localhost:7007
or provide a custom URL in thecreateClient()
call of the scripts - Execute one of the following scripts:
node ./tile-document.js
to run theTileDocument
logicnode ./model-instance-document.js
to run theModel
andModelInstanceDocument
logic