https://github.com/ceramicstudio/mid-transition-example
Ceramic TileDocument to ModelInstanceDocument transition example
https://github.com/ceramicstudio/mid-transition-example
Last synced: 10 months ago
JSON representation
Ceramic TileDocument to ModelInstanceDocument transition example
- Host: GitHub
- URL: https://github.com/ceramicstudio/mid-transition-example
- Owner: ceramicstudio
- License: mit
- Created: 2023-08-02T14:51:20.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-13T08:03:33.000Z (over 1 year ago)
- Last Synced: 2025-03-01T17:47:52.075Z (over 1 year ago)
- Language: JavaScript
- Size: 31.3 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TileDocument to ModelInstanceDocument transition example
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.
## Installation
```sh
pnpm install
```
## Usage
1. Have a local Ceramic node running on `http://localhost:7007` or provide a custom URL in the `createClient()` call of the scripts
1. Execute one of the following scripts:
- `node ./tile-document.js` to run the `TileDocument` logic
- `node ./model-instance-document.js` to run the `Model` and `ModelInstanceDocument` logic