See index.mjs
for the minimum required to publish points
pnpm install
- configure your environment for your preferred ceramic node
(we may in the future have a ephemeral node available)
export CERAMIC_URL=
export CERAMIC_PRIVATE_KEY=
1.1) If you have not done so already, ensure the points composite is deployed to your node
composedb composite:deploy ../../composites/points/composite.json --ceramic-url=$CERAMIC_URL --did-private-key=$CERAMIC_PRIVATE_KEY
- run the demo
node index.mjs [SOME_DID]
Note the did receiving points does not have to exist anywhere, only be a valid did string, such as did:key:123
The output on the console should be similar to
Note that totals will reflect points assigned by you and anyone else to that did. To extend this demo for your own application, you will want to create your own points composite with custom fields.
- to examine the streams created
http://localhost:7007/api/v0/streams/[streamid from console]