An open API service indexing awesome lists of open source software.

https://github.com/fuzzypawzz/vue3-mvc

A .NET 8 MVC app using Vue 3 with TypeScript on the Front-End (SSR, no SPA)
https://github.com/fuzzypawzz/vue3-mvc

composition-api csharp dotnet-vue dotnet8 mvc razor typegen typescript vue-ssr vue3

Last synced: 5 months ago
JSON representation

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

Awesome Lists containing this project

README

          

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

#### Primary files of interest
```sh
/src/main.ts

/Views/Shared/_Layout.cshtml

/Views/Home/Index.cshtml
```

#### Architecture

![Architecture diagram](./vue-mvc.png)

#### Install front-end modules:
```sh
$ npm install
```

#### Run front-end and watch for changes (port 5555)
```
npm run dev
```

#### Run dotnet back-end
```sh
$ dotnet run
```

#### Auto-generate TypeScript models from C# classes
```sh
$ dotnet typegen generate
```

#### Credits
- Jannik Maag (Fuzzypawzz)
- Evgenios Pampoukos (Evgenios95)