A batteries-included SvelteKit template for quickly bootstrapping full-stack applications.
- TODO
- Stack
- Quick Start
- Updating the Git Repository
- Deployment
- Features
- Environment Setup
- Development
- AI Development with Cline
- MongoDB
- LemonSqueezy
- Brevo
- Privacy Notice
- Imprint
- What else Konrad?
- 🎯 SvelteKit - Frontend framework with Tailwind CSS + Daisy UI
- 💳 LemonSqueezy - Payments, taxes, and subscription management
- 🔐 Supabase - Authentication and optional SQL database
- 🍃 MongoDB - Primary database (when needed)
- ⚡ Vercel - Deployment, Edge Functions, and Blob Storage
- 📧 Brevo - Transactional emails (signup, magic links, password reset)
- Clone this template:
git clone https://github.com/yourusername/kitstarter.git my-app cd my-app - Install dependencies:
npm install
- Copy the environment variables:
cp .env.example .env
- Fill in your environment variables in
.env - Start the development server:
npm run dev
Since this is a template, you'll need to update the remote repository to point to your own repository:
-
Remove the Existing Git Remote:
git remote remove origin
-
Add Your Repository:
Replaceyour-repo-urlwith the URL of your new repository:git remote add origin your-repo-url
-
Verify the Remote:
Ensure the new remote is set correctly:git remote -v
-
Push to Your Repository:
Push your changes to the new repository:git push -u origin main
This project uses Vercel for deployment. We provide a simple script to handle the entire setup process.
.env.examplefile with all required variables listed
-
Make the setup script executable:
chmod +x deploy-setup.sh
-
Run the setup script with the desired environment flag:
# For preview environment (default) ./deploy-setup.sh # For production ./deploy-setup.sh --prod
The script will:
- Install Vercel CLI if needed
- Log you into Vercel if needed
- Deploy your project to Vercel
- Set up environment variables for the chosen environment
Each environment (preview, production) can have its own set of environment variables. The script will prompt you to add each variable from your .env.example for the selected environment. Development environment variables are handled locally through your .env file.
Pushing to the main branch will automatically trigger a preview deployment. For manual deployments:
# Preview deployment (default)
./deploy-setup.sh
# Production deployment
./deploy-setup.sh --prodIf you encounter any issues:
- Ensure you're logged into Vercel:
vercel login - Check your environment variables in the Vercel dashboard
- Verify your
.env.examplefile lists all required variables
Remember: Never commit your .env file to Git!
- 🔒 Authentication ready (Supabase)
- 🎨 UI components with Tailwind + Daisy UI
- 📱 Responsive layouts
- 🛣️ Route protection
- ✉️ Email integration setup
- 💰 Payment infrastructure ready
You'll need to set up accounts with:
- Supabase - Auth and optional SQL database
- MongoDB - If you need a NoSQL database
- LemonSqueezy - For payments
- Brevo - For transactional emails
- Vercel - For deployment
You can disable auth by setting PUBLIC_AUTH_ENABLED to false in your .env file, in which case you can leave the supabase keys empty.
Add the respective API keys to your .env file.
npm run dev- Start development serververcel dev- Start development server with Vercel
This template includes predefined prompts for Cline to help you develop faster with AI assistance. We suggest the first thing you ask Cline is to adapt the starter to your design requirements as it will be easier to do this at the beginning.