.NET Svelte Template
A production-ready .NET 9.0 template with Svelte 5 frontend, featuring seamless integration, hot reloading, and TypeScript support out of the box.
Features
- Hot Reloading - Instant feedback for both backend and frontend changes
- Svelte 5 - Latest Svelte with runes and modern reactivity
- TypeScript - Full type safety across the stack
- .NET 9.0 - Latest .NET with minimal APIs and top-tier performance
- SvelteKit - Server-side rendering and routing
- Zero Configuration - Works immediately after installation
- Vite Integration - Fast builds
Quick Start
Install the Template
dotnet new install Nelsontkq.Svelte
Create a New Project
dotnet new svelte -n MyApp
cd MyApp
dotnet run
That's it! Your full-stack application is now running.
Alternative Installation Methods
Using degit (for direct cloning)
degit https://github.com/nelsontkq/dotnet-svelte-template/DotnetSvelteApp my-app
cd my-app
dotnet run
Manual Installation
- Download or clone this repository
- Navigate to the
DotnetSvelteApp
folder
- Run
dotnet run
Requirements
- .NET 9.0 SDK
- Node.js (automatically managed during build. Only required during build process)
VS Code Setup
For the best development experience, install the Svelte for VS Code extension for syntax highlighting and IntelliSense.
Found an issue? Report it here