https://github.com/moolenbeek/sveltekit-auth-prisma
sveltekit user auth template using lucia, prisma, sqlite, and pico css
https://github.com/moolenbeek/sveltekit-auth-prisma
adapter adapter-prisma auth lucia middleware picocss prisma prisma-client sqlite svelte sveltekit
Last synced: 11 months ago
JSON representation
sveltekit user auth template using lucia, prisma, sqlite, and pico css
- Host: GitHub
- URL: https://github.com/moolenbeek/sveltekit-auth-prisma
- Owner: moolenbeek
- Created: 2024-09-10T21:47:08.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-16T01:07:13.000Z (almost 2 years ago)
- Last Synced: 2025-03-14T02:13:41.049Z (over 1 year ago)
- Topics: adapter, adapter-prisma, auth, lucia, middleware, picocss, prisma, prisma-client, sqlite, svelte, sveltekit
- Language: TypeScript
- Homepage:
- Size: 102 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sveltekit-auth-prisma
Sveltekit user auth template using lucia, prisma, and pico css
[TypeScript](https://www.typescriptlang.org/), [Svelte](https://svelte.dev), [SvelteKit](https://kit.svelte.dev), [Lucia](https://lucia-auth.com/), [Prisma](https://www.prisma.io/), [SQLite](https://www.sqlite.org/), 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
cd sveltekit-auth
```
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 to your `.env`
```bash
DATABASE_URL="file:./dev.db"
```
Migrate database
```bash
npx prisma migrate dev --name init
```
Start development server:
```bash
npm run dev
```