Skip to content

eike-heimpel/kitstarter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Kitstarter

A batteries-included SvelteKit template for quickly bootstrapping full-stack applications.


Table of Contents

  1. TODO
  2. Stack
  3. Quick Start
  4. Updating the Git Repository
  5. Deployment
  6. Features
  7. Environment Setup
  8. Development
  9. AI Development with Cline

TODO

  • MongoDB
  • LemonSqueezy
  • Brevo
  • Privacy Notice
  • Imprint
  • What else Konrad?

Stack

  • 🎯 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)

Quick Start

  1. Clone this template:
    git clone https://github.com/yourusername/kitstarter.git my-app
    cd my-app
  2. Install dependencies:
    npm install
  3. Copy the environment variables:
    cp .env.example .env
  4. Fill in your environment variables in .env
  5. Start the development server:
    npm run dev

Updating the Git Repository

Since this is a template, you'll need to update the remote repository to point to your own repository:

  1. Remove the Existing Git Remote:

    git remote remove origin
  2. Add Your Repository:
    Replace your-repo-url with the URL of your new repository:

    git remote add origin your-repo-url
  3. Verify the Remote:
    Ensure the new remote is set correctly:

    git remote -v
  4. Push to Your Repository:
    Push your changes to the new repository:

    git push -u origin main

Deployment

Deployment Guide

This project uses Vercel for deployment. We provide a simple script to handle the entire setup process.

Prerequisites

  • .env.example file with all required variables listed

Deployment Steps

  1. Make the setup script executable:

    chmod +x deploy-setup.sh
  2. 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.


Future Deployments

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 --prod

Troubleshooting

If you encounter any issues:

  • Ensure you're logged into Vercel: vercel login
  • Check your environment variables in the Vercel dashboard
  • Verify your .env.example file lists all required variables

Remember: Never commit your .env file to Git!


Features

  • 🔒 Authentication ready (Supabase)
  • 🎨 UI components with Tailwind + Daisy UI
  • 📱 Responsive layouts
  • 🛣️ Route protection
  • ✉️ Email integration setup
  • 💰 Payment infrastructure ready

Environment Setup

You'll need to set up accounts with:

  1. Supabase - Auth and optional SQL database
  2. MongoDB - If you need a NoSQL database
  3. LemonSqueezy - For payments
  4. Brevo - For transactional emails
  5. 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.


Development

  • npm run dev - Start development server
  • vercel dev - Start development server with Vercel

AI Development with Cline

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.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors