This repo contains an aspnetcore + Svelte.js starter template (VS2017). The template is based on the Vue SPA template
- ASP.NET Core
- Web API
- Svelte 3.x
- Webpack 4.x
- Bootstrap 4.x
- nodejs > 6
- VS2017 or VS Code
- dotnet core - NET Core SDK 2.2 for Windows, Mac, or Linux
- If you need Core 3.0 then go here https://github.com/Kiho/aspcore-spa-cli/tree/master/samples/SvelteCliSample
- Core 3.0 HMR example with svite: https://github.com/Kiho/aspcore-spa-cli/tree/master/samples/SviteSample
- Clone this repo
- At the repo's root directory run
dotnet restore
- Restore Node dependencies by running
npm install
npm run build:vendor
npm run build
- Run the application (
dotnet run
)
or
- Run the application in VSCode or Visual Studio 2017 (Hit
F5
) to launch the application in a browser
- Building Single Page Applications on ASP.NET Core with JavaScriptServices here