https://github.com/gustavocadev/lucia-auth-drizzle-sqlite-turso-qwik
Lucia Auth + Drizzle ORM + Turso / Example
https://github.com/gustavocadev/lucia-auth-drizzle-sqlite-turso-qwik
drizzle-orm lucia-auth qwik qwik-city sqlite turso
Last synced: 3 months ago
JSON representation
Lucia Auth + Drizzle ORM + Turso / Example
- Host: GitHub
- URL: https://github.com/gustavocadev/lucia-auth-drizzle-sqlite-turso-qwik
- Owner: gustavocadev
- Created: 2024-01-11T18:33:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-22T15:28:21.000Z (over 1 year ago)
- Last Synced: 2025-02-28T01:59:37.284Z (7 months ago)
- Topics: drizzle-orm, lucia-auth, qwik, qwik-city, sqlite, turso
- Language: TypeScript
- Homepage:
- Size: 94.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Username & password example with Lucia and Qwik City
> ❗⚠️You may also be interested in this project [qwik-lucia](https://github.com/gustavocadev/qwik-lucia), which gonna help you to integrante Lucia v3 in your qwik projects easily, there are many [examples](https://github.com/gustavocadev/qwik-lucia/tree/main/examples) as well!
This example uses `@libsql/client` with Turso and Drizzle ORM.
```bash
# install dependencies
pnpm i# run drizzle kit
pnpm db:push# run dev server
pnpm dev
```## Runtime
This example is built for Node.js 20. If you're using Node.js 16/18, un-comment the following lines in `auth/lucia.ts`:
```ts
// import "lucia/polyfill/node";
```## User schema
| id | type | unique |
| ----------- | -------- | :----: |
| `id` | `string` | ✓ |
| `username` | `string` | ✓ |
| `name` | `string` | |
| `last_name` | `string` | |
| `email` | `string` | ✓ |