A simple todos app built with Stacks and Ceramic ComposeDB.
Tech stack:
- stacks.js
- composeDB
- next.js
- relay
- mantine
pnpm dev
Open http://localhost:3000 with your browser to see the app.
- Install required dependencies
pnpm install -g @ceramicnetwork/cli @composedb/cli
- Generate a new private key
composedb did:generate-private-key
- Generate account
composedb did:from-private-key your-private-key
- Add the authenticated DID key to
~/.ceramic/daemon.config.json
in theadmin-dids
array - Start the ceramic node
CERAMIC_ENABLE_EXPERIMENTAL_COMPOSE_DB='true' pnpm dlx @ceramicnetwork/cli daemon
- Create composite
composedb composite:create ceramic/schema.graphql --output ceramic/composite.json --did-private-key your-private-key
- Compile composite
composedb composite:compile ceramic/composite.json ceramic/runtime-composite.json
- Start node
composedb graphql:server --ceramic-url=http://localhost:7007 --graphiql ceramic/runtime-composite.json --did-private-key=your-private-key --port=5005
- Deploy composite
composedb composite:deploy ceramic/composite.json --ceramic-url=http://localhost:7007 --did-private-key your-private-key
- Generate a runtime schema
pnpm dlx get-graphql-schema http://localhost:5005/graphql > ceramic/runtime-schema.graphql