Realtime chat using GraphQL Live Queries, Next.js, and ComposeDB.
To follow the full tutorial, go to the tutorial page.
- Install your dependencies:
npm install
- Generate your admin seed, admin did, and ComposeDB configuration file:
npm run generate
The server configuration that's auto-generated when running this command is inmemory.
- Create a .env file and enter the three required environment variables outlined in .env.example
(the only environment variable needed for this app is an openai API key)
- Run the application (make sure you are using node version 20):
nvm use 20
npm run dev
npm run build
To learn more about Ceramic please visit the following links
- ComposeDB Sandbox - Test your queries directly from your browser without any local dependencies.
- Ceramic Documentation - Learn more about the Ceramic Ecosystem.
- ComposeDB - Details on how to use and develop with ComposeDB!
Credit to ChatBase for an awesome template to work with.