This demo application coincides with a separate tutorial that shows how WalletConnect's Web3Modal can be used with Ceramic to initiatiate authenticated user sessions.
Use the below steps to get started locally:
- Install your dependencies:
Install your dependencies:
npm install
- Generate your admin seed, admin did, and ComposeDB configuration file:
Next, we will need to generate an admin seed and ComposeDB configuration our application will use. This example repository contains a script found at /scripts/commands/mjs that generates one for you (preset to run "inmemory" which is ideal for testing).
To generate your necessary credentials, run the following in your terminal:
npm run generate
If you explore your composedb.config.json and admin_seed.txt files, you will now see a defined JSON ComposeDB server configuration and Ceramic admin seed, respectively.
-
Create a .env file and copy-paste the contents of the existing .env.example file into it
-
Create a WalletConnect project ID by visiting https://cloud.walletconnect.com/sign-in, create a new project (with a name of your choosing and the
App
type selected), and copy theProject ID
key once available. You will need to enter this into src/pages/_app.tsx on line 8 to assign to theprojectId
value. -
Finally, run your application in a new terminal (first ensure you are running node v20 in your terminal):
nvm use 20
npm run dev
- Visit port 3000 in your browser
To learn more about Ceramic please visit the following links
- Ceramic Documentation - Learn more about the Ceramic Ecosystem.
- ComposeDB - Details on how to use and develop with ComposeDB!
- AI Chatbot on ComposeDB - Build an AI-powered Chatbot and save message history to ComposeDB
- ComposeDB API Sandbox - Test GraphQL queries against a live dataset directly from your browser
- Ceramic Blog - Browse technical tutorials and more on our blog
- Ceramic Discord - Join the Ceramic Discord
- Follow Ceramic on Twitter - Follow us on Twitter for latest announcements!