Skip to content

A starter project for sveltekit with better auth. It is just a fork of fair-n-square-co/webapp when a basic setup was done.

Notifications You must be signed in to change notification settings

tagpro/sveltekit-auth-starter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sv

Everything you need to build a Svelte project, powered by sv.

Creating a project

If you're seeing this, you've probably already done this step. Congrats!

# create a new project in the current directory
bunx sv create

# create a new project in my-app
bunx sv create my-app

Developing

Once you've created a project and installed dependencies with bun install, start a development server:

# One time setup
## Run the next line and fill up the details in the new `.env.local` file
cp .env.example .env.local

bun run dev

# or start the server and open the app in a new browser tab
bun run dev -- --open

DB migration

bun run db:push

Generating better auth schema

bunx @better-auth/cli generate -y --output ./src/lib/server/db/betterauth/schema.ts

Building

To create a production version of your app:

bun run build

You can preview the production build with bun run preview.

To deploy your app, you may need to install an adapter for your target environment.

GCP

Google login

Test users

If you want to add test users, you need to add them here

About

A starter project for sveltekit with better auth. It is just a fork of fair-n-square-co/webapp when a basic setup was done.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Svelte 43.0%
  • TypeScript 24.3%
  • MDX 17.9%
  • CSS 10.9%
  • JavaScript 3.4%
  • HTML 0.5%