supabase-crud Svelte Themes

Supabase Crud

Supabase and Svelte authorization boilerplate with sign up and in with password, and forgot password + CRUD.

Supase + Svelte Kit Auth + CRUD

Supabase and Svelte authorization boilerplate with sign up and in with password, and forgot password + CRUD.

# create a new project in the current directory
npm install

More info https://kit.svelte.dev/

Supabase client

Create a .env file in the root folder with your YOUR_URL and YOUR_KEY.

PUBLIC_SUPABASE_URL=YOUR_URL
PUBLIC_SUPABASE_ANON_KEY=YOUR_KEY

More information https://supabase.com/docs/reference/javascript/installing

Centers Table

create table centers (
  id bigint generated by default as identity primary key,
  user_id uuid references auth.users not null,
  name text check (char_length(name) > 3),
  is_active boolean,
  inserted_at timestamp with time zone default timezone('utc'::text, now()) not null
);

start a development server

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.

Top categories

Loading Svelte Themes