Git Product home page Git Product logo

composite-deploy-boilerplate's Introduction

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 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;
  1. There are two different ways of deploying you can use:
nvm use 20
npm run testOne

or

nvm use 20
npm run testTwo

Learn More

To learn more about Ceramic please visit the following links

composite-deploy-boilerplate's People

Stargazers

Gee_nie avatar

Watchers

 avatar Joel Thorstensson avatar Michael Sena avatar Danny Zuckerman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.