https://github.com/pradel/stacks-ceramic-demo
A simple todos app built with Stacks and Ceramic ComposeDB
https://github.com/pradel/stacks-ceramic-demo
Last synced: over 1 year ago
JSON representation
A simple todos app built with Stacks and Ceramic ComposeDB
- Host: GitHub
- URL: https://github.com/pradel/stacks-ceramic-demo
- Owner: pradel
- License: mit
- Created: 2023-02-13T13:43:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-14T09:46:05.000Z (over 3 years ago)
- Last Synced: 2025-02-01T22:43:56.615Z (over 1 year ago)
- Language: TypeScript
- Size: 116 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# stacks-ceramic-demo
A simple todos app built with Stacks and Ceramic ComposeDB.
Tech stack:
- stacks.js
- composeDB
- next.js
- relay
- mantine
## Getting Started
```bash
pnpm dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the app.
## Ceramic setup
1. Install required dependencies `pnpm install -g @ceramicnetwork/cli @composedb/cli`
1. Generate a new private key `composedb did:generate-private-key`
1. Generate account `composedb did:from-private-key your-private-key`
1. Add the authenticated DID key to `~/.ceramic/daemon.config.json` in the `admin-dids` array
1. Start the ceramic node `CERAMIC_ENABLE_EXPERIMENTAL_COMPOSE_DB='true' pnpm dlx @ceramicnetwork/cli daemon`
1. Create composite `composedb composite:create ceramic/schema.graphql --output ceramic/composite.json --did-private-key your-private-key`
1. Compile composite `composedb composite:compile ceramic/composite.json ceramic/runtime-composite.json`
1. Start node `composedb graphql:server --ceramic-url=http://localhost:7007 --graphiql ceramic/runtime-composite.json --did-private-key=your-private-key --port=5005`
1. Deploy composite `composedb composite:deploy ceramic/composite.json --ceramic-url=http://localhost:7007 --did-private-key your-private-key`
1. Generate a runtime schema `pnpm dlx get-graphql-schema http://localhost:5005/graphql > ceramic/runtime-schema.graphql`