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
- Host: GitHub
- URL: https://github.com/gustavocadev/lucia-auth-drizzle-pg-neon-qwik
- Owner: gustavocadev
- Created: 2024-01-11T17:23:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-19T14:57:56.000Z (over 1 year ago)
- Last Synced: 2025-01-10T17:13:30.130Z (5 months ago)
- Topics: drizzle-kit, drizzle-orm, neon, pg, qwik, qwik-city
- Language: TypeScript
- Homepage:
- Size: 155 KB
- Stars: 0
- 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 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` | ✓ |