Skip to content

A .NET 8 MVC app using Vue 3 with TypeScript on the Front-End (SSR, no SPA)

Notifications You must be signed in to change notification settings

fuzzypawzz/vue3-mvc

Repository files navigation

Vue 3 inside a .NET MVC application. (SSR, no SPA)

Primary files of interest

/src/main.ts

/Views/Shared/_Layout.cshtml

/Views/Home/Index.cshtml

Architecture

Architecture diagram

Install front-end modules:

$ npm install

Run front-end and watch for changes (port 5555)

npm run dev

Run dotnet back-end

$ dotnet run

Auto-generate TypeScript models from C# classes

$ dotnet typegen generate

Credits

  • Jannik Maag (Fuzzypawzz)
  • Evgenios Pampoukos (Evgenios95)