top-svelte-postgres Svelte Themes

Top Svelte Postgres

SvelteKit + PostgreSQL starter template with authentication, todos, and best practices

Top-SvelteKit Template

A unified full-stack template with SvelteKit (Svelte 5), TailwindCSS, DaisyUI, AuthJS, Postgres, and more.
by ctwhome

Documentation

Features

  • Simplicity in code: Update Svelte stores locally and let syncing happen in the background
  • Future scalability: Real-time sync, offline-first capabilities
  • Role-Based Access Control: Server-side authorization with built-in role management
  • Automated Versioning: Semantic versioning with conventional commits
  • Release Management: Automated changelog generation and GitHub releases

Quick Start

  1. Copy .env.example to .env and fill in the required variables

Runnin with Docker

It will run the database, migrations and frontend services.

docker compose up

Feeding the database for devepment

# Start everything (including the seed service):
docker compose --profile seed up
# or just run the seed container on demand:
docker compose --profile seed run seed

Docker utils

docker compose down -v # Remove all volumes, carefull all data will be lost.
docker compose logs -f

Running locally without docker and external database url (or i.e. local postgres running on port 5432)

bun install
bun dev

Visit http://localhost:9000 to open the application.

Development

Committing Changes

This project supports Conventional Commits for automated versioning:

# Regular commits work normally
git commit -m "update readme"

# Use conventional format for automatic versioning
git commit -m "feat: add new feature"  # Minor version bump
git commit -m "fix: resolve bug"       # Patch version bump

No enforcement - commit as you prefer! See Versioning Guide for details.

Release Process

Releases are automated via GitHub Actions when pushing to main:

  • Automatic version bumping based on commit types
  • Changelog generation
  • GitHub release creation

View releases at Releases and changelog at CHANGELOG.md.

Top categories

Loading Svelte Themes