Skip to content

Provides a SvelteKit + CardBoard starter with cardboard.js

Notifications You must be signed in to change notification settings

cardboard-ink/cb-sveltekit-starter

Repository files navigation

SvelteKit CB Example

Aims to provide a SvelteKit + CardBoard starter with cardboard.js

What this repo already did (CB + SvelteKit Setup 🔥)

Step 1> Add cardboard.js

Step 2> Setup .env file like provided one

Step 3> Setup auth file like in auth.ts

Step 4> Add Auth Routes like in (auth)

Step 5> Setup hooks to fetch user data hooks

Step 6 (optional)> If using typescript, configure app.d.ts to handle user data types

Step 7> Make the data available to frontend from backend in the layout file

Step 8> Use the data on pages like on page files

Step 9> Default session expires in 30 days, you can add a logout button too like in app header

Step 10> Enjoy 🤗

About

Provides a SvelteKit + CardBoard starter with cardboard.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published