Skip to content

samhess/svelte-blog

Repository files navigation

Simple Blog with SvelteKit

This is a simple blog system implemented with SvelteKit. It uses Prisma ORM for database access. For layout and design Tailwind CSS is used along with Skeleton UI toolkit. Authentication is implemented using Lucia Auth.

Getting Started

# Create a new GitHub project and use `git clone` to copy this project.
git clone https://github.com/samhess/svelte-blog.git

# Install dependencies
npm install

# Specify DATABASE_URL as environment variable
# Create the database model
npx prisma db push

# Run the development server
npm run dev

Database

Local Database

Specify the DATABASE_URL in .env. Also adjust the database type (provider) in schema.prisma.

Cloud Database

Specify the DATABASE_URL in the environment variables of your cloud database provider.

Deploy

Learn how to deploy a full stack SvelteKit app on Vercel for free.

Links