Svelte .NET TemplateA simple project template for working with Svelte and ASP.NET. The template consists of 2 projects - a Svelte project (Client) that utilizes SvelteKit for the routing and an ASP.NET API (Server). The project is using Svelte 4 and .NET 8.
ClientPrerequisitesThis project requires NodeJS (version 18 or later) and NPM. To make sure you have them available on your machine, try running the following command:
Installation
Serving the app
BuildingTo create a production version of your app:
You can preview the production build with
Generating code from Swagger APITo regenerate TypeScript code around interacting with the Web API:
RecommendationsThe template was created with the intention of using VS Code for the Client and Visual Studio for the Server. You are free to use whatever tools you prefer though. |