This example uses the Qwik web framework.
- Run
npx degit grafbase/grafbase/examples/qwik grafbase-with-qwikto clone this example - Change directory into the new folder
cd grafbase-with-qwik - Run
cp .env.example .env - Open
.envin your code editor and provide your Grafbase API endpoint and API key. Example should be fine fornpx grafbase dev! - Run
npm install, oryarn installto install dependencies - Run
npx grafbase@latest devin your terminal - Populate the backend with some
Messageentries using a GraphQL mutation:
mutation {
messageCreate(
input: { author: "Grafbase Admin", message: "Grafbase is awesome!" }
) {
message {
id
}
}
}- In another terminal, run
npm startand visithttp://localhost:5173/
To learn more about Grafbase, take a look at the following resources:
- Grafbase - learn about Grafbase features and API.
To learn more about Builder.io, take a look at the following resources:
- Qwik City Documentation - learn about Qwik City.
- Learn Qwik - learn more about Qwik.