A simple Todo application built with:
- SvelteKit - A framework for building web applications
- tRPC - End-to-end typesafe APIs
- Drizzle ORM - TypeScript ORM
- Neon Postgres - Serverless Postgres database
-
Clone this repository:
git clone <repository-url> cd Svelte-tRPC-Drizzle-Neon
-
Install dependencies:
pnpm install
-
Set up your Neon Postgres database:
- Create a free account at neon.tech
- Create a new project and database
- Copy your connection string
-
Update the
.env
file with your database connection string:DATABASE_URL="postgres://user:password@your-neon-host/dbname"
-
Push the database schema:
pnpm db:push
-
Start the development server:
pnpm dev
-
Open your browser and navigate to
http://localhost:5173
- Create, read, and update todos
- Toggle todo completion status
- User management
- End-to-end type safety with tRPC
- PostgreSQL database with Drizzle ORM
- Modern UI with Tailwind CSS
/src/lib/server/db
- Database schema and configuration/src/lib/server/trpc
- tRPC router and context/src/lib/components
- Reusable UI components/src/routes
- SvelteKit routes