Skip to content

zeshhaan/nuxt-lucia-turso-drizzle

Repository files navigation

Nuxt 3 + Lucia Auth + Drizzle ORM + Turso

A barebone full-stack Nuxt 3 starter template with Authentication, and SQLite DB for your next SaaS app.

Uses

Nuxt 3

Lucia Auth v2

Drizzle ORM

Turso

Setup

Make sure to install the dependencies:

pnpm install

Copy the .env.example file

cp .env.example .env

Setup turso and fill in the turso db credentials

Update the scheme

Update the schema to fit your needs in database/schema.ts folder

Push migration

pnpm run db:push

Run migration

pnpm run db:migrate

Open the database GUI

pnpm run db:studio

which will run drizzle kit studio

Development Server

pnpm run dev