sveltekit-drizzle-orm-planetscale-lucia Svelte Themes

Sveltekit Drizzle Orm Planetscale Lucia

SvelteKit + Lucia Auth v3 + Planetscale + Drizzle ORM

create-svelte

Everything you need to build a Svelte project, powered by create-svelte.

Create and .env file with the following variables

DATABASE_URL='mysql://86bh6kqdbfmqndt0bimw:********************@aws.connect.psdb.cloud/test?ssl={"rejectUnauthorized":true}'

Install dependencies

pnpm install

Run Drizzle Kit to sincronize the schema with the planetScale database

pnpm db:push

Developing

Start a development server:

pnpm run dev

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

Building

To create a production version of your app:

pnpm run build

You can preview the production build with pnpm run preview.

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

Top categories

Loading Svelte Themes