An open API service indexing awesome lists of open source software.

https://github.com/gustavocadev/lucia-auth-drizzle-pg-neon-qwik

Lucia Auth v3 + Drizzle ORM + PostgreSQL using Neon Service Example
https://github.com/gustavocadev/lucia-auth-drizzle-pg-neon-qwik

drizzle-kit drizzle-orm neon pg qwik qwik-city

Last synced: 4 months ago
JSON representation

Lucia Auth v3 + Drizzle ORM + PostgreSQL using Neon Service Example

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 in your qwik projects easily, there are many [examples](https://github.com/gustavocadev/qwik-lucia/tree/main/examples) as well!

This example uses `pg` 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` | ✓ |
| `names` | `string` | |
| `last_names` | `string` | |
| `email` | `string` | ✓ |