A modern, full-stack SvelteKit boilerplate with Drizzle ORM, PostgreSQL, TailwindCSS, authentication and more ready to go.
Clone this repository
git clone https://github.com/thomasmolorg/sveltekit-boilerplate.git
cd sveltekit-mvp-boilerplate
Install dependencies
bun install
Set up your environment variables
cp .env.example .env
Edit the .env
file with your database credentials and other configuration.
Run database migrations
bun run db:migrate
Start the development server
bun run dev
bun run db:generate
bun run db:migrate
bun run db:studio
โโโ drizzle/ # Database migrations
โโโ src/
โ โโโ lib/ # Shared utilities and components
โ โ โโโ server/ # Server-only code
โ โ โ โโโ db/ # Database schema and connection
โ โโโ routes/ # SvelteKit routes
โ โ โโโ app/ # Protected application routes
โ โ โโโ (auth)/ # Authentication routes
โ โโโ hooks.server.ts # SvelteKit hooks for auth and more
โโโ static/ # Static assets
โโโ drizzle.config.ts # Drizzle ORM configuration
โโโ svelte.config.js # SvelteKit configuration
This boilerplate includes a pre-configured authentication system using better-auth. It provides:
This boilerplate can be deployed to any platform that supports SvelteKit applications:
Contributions are welcome! Please open an issue or submit a pull request.