This project is a bare-bones project template to quickly get started with the following tech stack:
- Svelte
- SvelteKit for routing
- Carbon Design System
- C# / .Net 6.0
- NUnit
- IIS Hosted (requires IIS URL Rewrite Module)
- Clone this repository:
git clone https://github.com/gatapia/svelte_dotnet_template.git
- Edit
svelte.config.js
and replace<project-directory>
with the IIS virtual directory/application name - Run
npm install
in theweb
directory - Run
release.bat
in the root directory, this will create therelease
directory which can be deployed in IIS - Set up a virtual directory/application in IIS pointing to the created
release
directory - Develop by running the
srv
project on IIS Express (Ctrl + F5
in Visual Studio) and runningnpm run dev
in the dev directory
release.bat
updates therelease
directory for IIS deployment. Note: IIS locks this directory, so for any further releases you will need to stop IIS. This is easily done by killing thew3wp.exe
processrelease_web.bat
updates the svelte code in therelease\wwwroot
directory- Run dev server:
npm run dev
(inweb
directory)