Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.04 KB

README.md

File metadata and controls

43 lines (33 loc) · 1.04 KB

Helix Ceramic

Init

npm install --location=global @ceramicnetwork/cli
npm install --location=global @composedb/cli

Start Ceramic db

npx @ceramicnetwork/cli daemon

After the frist time launched daemon, you should stop it manully and edit your own daemon.config.json

Using your account

# Generate private key
composedb did:generate-private-key
export CERAMIC_PRIVATE_KEY=<your private key>
# Generate DID
composedb did:from-private-key your-private-key
cd ~/.ceramic
vim daemon.config.json
# put your did in "admin-dids"
# Restart ceramic
ceramic daemon --network=inmemory/testnet-clay/mainnet

Generate model file from graphql

composedb composite:create helix-bridge-multi-sig-schema.graphql --output=helix-composite.json --did-private-key=YOUR KEY MATCHES ADMIN DIDS

Index/Subcribe to the data model

composedb composite:deploy helix-composite.json --ceramic-url=http://localhost:7007 --did-private-key=$YOUR_PRIVATE_KEY

Use the service from TypeScript client or start a graphQL server