- Run
npx degit grafbase/grafbase/examples/sveltekit grafbase-with-sveltekitto clone this example - Change directory into the new folder
cd grafbase-with-sveltekit - Run
cp .env.example .env - Open
.envin your code editor, and provide your Grafbase API endpoint and API key - Run
npm install, oryarn installto install dependencies - Run
npm run graphql, oryarn graphqlto generate types from Schema - Run
npm run dev, oryarn devand 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 SvelteKit, take a look at the following resources:
- SvelteKit Documentation - learn about SvelteKit features and API.