Skip to content

A demo application that coincides with a separate tutorial that shows how WalletConnect's Web3Modal can be used with Ceramic to create authenticated user sessions.

Notifications You must be signed in to change notification settings

ceramicstudio/walletconnect-tutorial

Repository files navigation

Event Attendance WalletConnect Demo App

This demo application coincides with a separate tutorial that shows how WalletConnect's Web3Modal can be used with Ceramic to initiatiate authenticated user sessions.

Getting Started

Use the below steps to get started locally:

  1. Install your dependencies:

Install your dependencies:

npm install
  1. 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.

  1. Create a .env file and copy-paste the contents of the existing .env.example file into it

  2. 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 the Project ID key once available. You will need to enter this into src/pages/_app.tsx on line 8 to assign to the projectId value.

  3. Finally, run your application in a new terminal (first ensure you are running node v20 in your terminal):

nvm use 20
npm run dev
  1. Visit port 3000 in your browser

Learn More

To learn more about Ceramic please visit the following links

About

A demo application that coincides with a separate tutorial that shows how WalletConnect's Web3Modal can be used with Ceramic to create authenticated user sessions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published