Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.07 KB

README.md

File metadata and controls

56 lines (38 loc) · 1.07 KB

sveltekit-auth-psql

Sveltekit user auth template using lucia, drizzle, psql, and pico css TypeScript, Svelte, SvelteKit, Lucia, Drizzle, and Pico CSS.

Get started

Clone the repository and navigate to the project directory:

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:

rm -rf .git
git init

Once you've cloned the project, install dependencies with NPM:

npm install # or `npm i`

Add the following database parameters to your .env without the square brackets:

DATABASE_URL="postgres://[user]:[password]@[host]:[port_number]/[db_name]"

Generate database

npm run generate

Migrate database

npm run migrate

Start development server:

npm run dev

Drizzle studio

npm run studio