app-starter-template Svelte Themes

App Starter Template

A starter template using SvelteKit + Tailwind + Lucia

App Starter Template

Features

  • SvelteKit, TypeScript
  • Tailwind, DaisyUI
  • ESLint, Prettier
  • Better-Auth
  • Drizzle, Redis
  • Vercel

Usage

Local Development

  1. Clone the repository

    git clone https://github.com/SkepticMystic/app-starter-template.git
    
  2. Install dependencies

    npm install
    
  3. Set up environment variables

    Create a .env file in the root directory and add the necessary environment variables. You can refer to the .env.example file for guidance.

    Part of this step is setting up a new postgres db (I currently use neon). Create a development branch in the neon dashboard, and copy the connection string to your .env file as DATABASE_URL.

    Then run the following command to create the necessary tables:

    npm run db push
    
  4. Run the development server

    npm run dev
    
  5. Open your browser and navigate to http://localhost:5173 to see the app in action.

Deployment

  1. Push your code to a Git repository (e.g., GitHub, GitLab).
  2. Connect your repository to Vercel.
  3. Set up the environment variables in the Vercel dashboard.
  4. Edit the build command to vite build && npm run db migrate in the Vercel dashboard.
  5. Deploy the app using Vercel.

TODOs

Top categories

Loading Svelte Themes