You can use the boilerplate in this repository to help merge and deploy composites onto your node (or a remote cloud node), allowing you to use the resulting runtime definition in your application
- Run
npm install
to install the packages
npm install
- If you are experimenting locally, create dummy credentials:
npm run generate
2a. If you are deploying to a remote node, alter the /scripts/composites.mjs or /scripts/compositesTwo.mjs files in the following way:
const ceramic = new CeramicClient("your-endpoint-here");
const seed = "your-private-seed"
//Creating a new admin DID based on your private key
const key = fromString(seed, "base16");
const did = new DID({
resolver: getResolver(),
provider: new Ed25519Provider(key),
});
spinner.info("Authenticating ceramic admin");
await did.authenticate();
ceramic.did = did;
- There are two different ways of deploying you can use:
nvm use 20
npm run testOne
or
nvm use 20
npm run testTwo
To learn more about Ceramic please visit the following links
- Ceramic Documentation - Learn more about the Ceramic Ecosystem.
- ComposeDB - Details on how to use and develop with ComposeDB!