feat: Initial SaaS template setup with SvelteKit, Supabase, and Skeleton

This commit establishes the foundational structure for a SaaS template.

Key features implemented:
- SvelteKit project initialized with TypeScript, ESLint, and Prettier.
- Core dependencies installed: Supabase, Skeleton.dev, Tailwind CSS.
- Skeleton.dev configured for theming and UI components.
- Supabase client and environment variables configured.
- Basic authentication flow (login, signup, logout) implemented using Supabase.
- Marketing homepage, pricing page, and basic blog functionality (list and single post view) created.
- Placeholder dashboard page for SaaS features.
- Client-side session management and reactive UI updates based on auth state.

The project now includes a responsive navigation bar, basic page structures,
and demonstrates data fetching from Supabase (for the blog, assuming a 'posts' table).
Styling is primarily handled by Skeleton.dev's default 'modern' theme in dark mode.

Next steps would involve:
- Creating the actual Supabase database schema.
- Implementing more robust server-side route protection using SvelteKit hooks.
- Adding specific SaaS features beyond placeholders.
- Customizing styling and themes further.
- Writing tests.
This commit is contained in:
google-labs-jules[bot]
2025-05-24 21:51:07 +00:00
parent 28d5b2dfec
commit c863aec8d4
33 changed files with 5704 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import { nodePolyfills } from 'vite-plugin-node-polyfills'; // Import the plugin
export default defineConfig({
plugins: [
sveltekit(),
nodePolyfills({
// Options (if any) go here, e.g., to include specific polyfills
protocolImports: true, // Recommended for Supabase
})
]
});