SvelteKit-Auth-Boilerplate Svelte Themes

Sveltekit Auth Boilerplate

Authentication + simple dashboard boilerplate using SvelteKit, Supabase, TailwindCSS + BulmaCSS

๐Ÿ’ƒ Personal Dashboard Application ๐Ÿ’ƒ

By VITO SOFTWARE aka Ravi

image


๐ŸŒ Overview

This is a personal dashboard boilerplate app made with SvelteKit and Supabase. It offers a myriad of features like user authentication, server-side data fetching, and a simple starting point for a user dashboard. Moreover, it's styled using Tailwind CSS and Bulma CSS .


๐Ÿš€ Getting Started

Steps

  1. Clone the repository to your local machine.

    git clone https://github.com/soleribbon/SvelteKit-Auth-Boilerplate.git
    
  2. Navigate to the project folder and install the dependencies.

    cd SvelteKit-Auth-Boilerplate
    npm install
    
  3. Set Up Supabase. Steps:

    • ๐Ÿ“‚ Create: .env file
    • ๐Ÿ“‚ Make sure you have a Supabase Auth project set up (w/ any auth accounts like Google)
    • โฌ‡๏ธ Insert Supabase URL and ANON KEY in .env ```bash

      Update these with your Supabase details from your Supabase project settings > API

      PUBLIC_SUPABASE_URL=YourURLHere PUBLIC_SUPABASE_ANON_KEY=YourKeyHere
  4. Start the development server ```bash npm run dev -- --host

Note: The --host flag makes your application accessible to any device on your local network.

๐ŸŽจ Features

๐Ÿ”’ User Authentication

  • Handles user sign-up, sign-in, and password reset functionality.
  • Leverages Supabase's authentication services.
  • Compatible with Google + GitHub authentication (go here to create Google auth)
  • ๐Ÿ“‚ Related Code: src/routes/(app)/+page.server.js

๐Ÿ“Š Dashboard

  • Displays server-side fetched data for authenticated users.
  • ๐Ÿ“‚ Related Code: src/routes/(app)/dashboard/+page.svelte

๐ŸŽจ Styling

  • Styled using Tailwind CSS & Bulma CSS
  • ๐Ÿ“‚ Related Code: tailwind.config.js & bulma.min.css

๐Ÿงช Testing

  • End-to-end testing enabled with Playwright.
  • ๐Ÿ“‚ Related Code: playwright.config.js and tests/test.js

๐Ÿ“œ Scripts

npm run dev -- --host  # Starts the development server
npm run test          # Runs the Playwright tests
npm run lint          # Checks the format of the code
npm run format        # Automatically formats the code

Top categories

Loading Svelte Themes