https://github.com/moolenbeek/sveltekit-auth-psql
sveltekit user auth template using lucia, drizzle, psql, and pico css
https://github.com/moolenbeek/sveltekit-auth-psql
auth postgresql psql svelte sveltekit
Last synced: 2 months ago
JSON representation
sveltekit user auth template using lucia, drizzle, psql, and pico css
- Host: GitHub
- URL: https://github.com/moolenbeek/sveltekit-auth-psql
- Owner: moolenbeek
- Created: 2024-09-16T01:10:48.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-21T14:15:55.000Z (almost 2 years ago)
- Last Synced: 2025-01-16T15:34:25.166Z (over 1 year ago)
- Topics: auth, postgresql, psql, svelte, sveltekit
- Language: TypeScript
- Homepage:
- Size: 19.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sveltekit-auth-psql
Sveltekit user auth template using lucia, drizzle, psql, and pico css
[TypeScript](https://www.typescriptlang.org/), [Svelte](https://svelte.dev), [SvelteKit](https://kit.svelte.dev), [Lucia](https://lucia-auth.com/), [Drizzle](https://orm.drizzle.team/), and [Pico CSS](https://picocss.com/).
## Get started
Clone the repository and navigate to the project directory:
```bash
git clone https://github.com/moolenbeek/sveltekit-auth.git sveltekit-auth-psql
cd sveltekit-auth-psql
```
If you would like to remove existing `.git` repository and re-initialize Git locally:
```bash
rm -rf .git
git init
```
Once you've cloned the project, install dependencies with NPM:
```bash
npm install # or `npm i`
```
Add the following database parameters to your `.env` without the square brackets:
```bash
DATABASE_URL="postgres://[user]:[password]@[host]:[port_number]/[db_name]"
```
Generate database
```bash
npm run generate
```
Migrate database
```bash
npm run migrate
```
Start development server:
```bash
npm run dev
```
Drizzle studio
```bash
npm run studio
```