This is a template to start a new project with SvelteKit. It includes the following features:
- SvelteKit with TypeScript.
- Database connection with Drizzle ORM. (Pre-configured with SQLite)
- Migrations with Drizzle Kit.
- Session-based authentication and authorization with Lucia.
- OAuth 2.0 and OpenID Connect clients with Arctic.
- Tailwind CSS for styling.
- ESLint latest flat-config for linting and Prettier for code formatting.
- Playwright for end-to-end testing.
- A package manager of your choice. (e.g. npm, yarn, pnpm or bun)
- Node.js 18.x or later. (Bun also works as it complies with Node.js APIs)
- Clone the repository.
git clone https://github.com/alejandroperezpujante/svelte-start-point.git
- Install the dependencies.
cd svelte-start-point
npm install # or (yarn, pnpm, bun) install
- Copy the
.env.example
file to.env
and fill in the required environment variables.
cp .env.example .env
- Run the migrations.
npm run migrations:push # or (yarn, pnpm, bun) run migrations:push
- Start the development server.
npm run dev # or (yarn, pnpm, bun) run dev
- Open your browser and navigate to
http://localhost:5173
.