This is a SvelteKit project template with Supabase authentication integration. It provides a starting point for building web applications with user authentication using Supabase.
For more detailed instructions, you can refer to the official Supabase guide on integrating Supabase with SvelteKit.
Follow these steps to get your project up and running:
git clone https://github.com/yourusername/sveltekit-supabase-auth-template.git
cd sveltekit-supabase-auth-template
Before proceeding, make sure you have a Supabase project set up. If you haven't, go to Supabase and create a project.
Create a .env
file in the root of your project directory and add the following environment variables:
PUBLIC_SUPABASE_URL="YOUR_SUPABASE_PROJECT_URL"
PUBLIC_SUPABASE_ANON_KEY="YOUR_SUPABASE_ANON_KEY"
Replace YOUR_SUPABASE_PROJECT_URL
and YOUR_SUPABASE_ANON_KEY
with the actual values from your Supabase project.
Install the project dependencies using npm:
npm install
Start the development server to run your SvelteKit application:
npm run dev
Your SvelteKit project with Supabase authentication is now up and running. You can start building your application with user authentication!
Happy coding and enjoy using this template for your SvelteKit and Supabase project!