Will migrate everything to svelte 5 once it's out, my personal fork will be used to track it's progress.
An Authentication Base Application built with SvelteKit.
Libraries Used:
Registration
Login
Rate limiting
Onboarding
Documentation
Admin dashboard
Demo dashboard apps
In order to start the development server, run the following command:
Environment Setup
cp .env.example .env # Creates a copy of .env.example to .env
#.env
DATABASE_URL=postgres://username:password@host:port/dbname # For local development only
SMTP_HOST=smtp.example.com # your smtp host
SMTP_PORT=587 # your smtp port
[email protected]
SMTP_PASSWORD=password
SMTP_FROM_NAME="Auth Kit" # if with spaces
[email protected] # only used for verifications,
[email protected] #
ORIGIN="https://example.com" # your domain name
GITHUB_CLIENT_ID=""
GITHUB_CLIENT_SECRET=""
GITHUB_CALLBACK_URL=http://localhost:5173/oauth/github/callback
GOOGLE_CLIENTID=""
GOOGLE_CLIENTSECRET=""
GOOGLE_CALLBACK_URL=http://localhost:5173/oauth/google/callback
STORAGE_ACCESS_KEY=accesskey
STORAGE_SECRET_KEY=secretkey
STORAGE_URL= #customdomain or .r2 or s3 url
# do not include /bucketname for r2,
STORAGE_ENDPOINT=https://yoururl.r2.cloudflarestorage.com
STORAGE_BUCKET=bucketname
Create a bucket and get your credentials from the storage provider This requires a storage provider like minio, r2, or any s3 compatible provider. READ more about it here
Create your Database for now the schemas are written in postgres, create a neon or vercel postgres database, or run your own in a container for development
e.g
pnpm db:migrate # or npm run db:migrate
# Optional if you just want to login and check whats inside
pnpm db:seed # or npm run db:seed
Run the development server
pnpm dev # or npm run dev
WIP but a dockerfile is included.