mirror of
https://github.com/LukeHagar/Sveltey.git
synced 2025-12-06 04:21:38 +00:00
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.
sv
Everything you need to build a Svelte project, powered by sv.
Creating a project
If you're seeing this, you've probably already done this step. Congrats!
# create a new project in the current directory
npx sv create
# create a new project in my-app
npx sv create my-app
Developing
Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), 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.