# Spock - Svelte + Pocketbase My boilerplate for 1. Sveltekit + Pocketbase DB 2. Tailwindcss 3. SkeletonUI # Auth Ready ### Snippet from login.svelete component - populating name and avatar from Google provider ```typescript ``` ### currentUser as a store to use example ``` $currentUser.avatar ``` ```ts import { env } from '$env/dynamic/public' import PocketBase from 'pocketbase' import { writable } from 'svelte/store' export const pb = new PocketBase(env.PUBLIC_DB_URL) export const currentUser = writable(pb.authStore.model) pb.authStore.onChange((auth) => { //console.log('auth changed ', auth) currentUser.set(pb.authStore.model) }) ``` ### use .env for pocketbase URL ```sh PUBLIC_DB_URL=http://localhost:8090 ```