Skip to content

Easy boilerplate options for users to reference when deploying Passport models onto a local or production node.

Notifications You must be signed in to change notification settings

passportxyz/passport-ceramic-deployment

Repository files navigation

Boilerplate Composite Runtime Compilation

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

  1. Run npm install to install the packages
npm install
  1. If you are deploying to a remote node, alter the /scripts/composites.mjs to replace "your-endpoint-here" with your production node, and "your-private-seed" with your corresponding admin seed (we will be running this locally, so be sure to delete after):
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;
  1. Run the deploy script and ensure you're using the correct version of node:
nvm use 20
npm run deploy

Learn More

To learn more about Ceramic please visit the following links

About

Easy boilerplate options for users to reference when deploying Passport models onto a local or production node.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published