# dotvue **Repository Path**: mirrors_mbdavid/dotvue ## Basic Information - **Project Name**: dotvue - **Description**: Implement .vue file handler in .NET with server ViewModel postback - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-02-27 - **Last Updated**: 2026-01-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # DotVue Implement `.vue` single-file component with server-side ViewModel. Use all power of VueJS with simple C# server side data access. > Login.vue.cs ```C# namespace ServerViewModel { public class Login : ViewModel { public Username { get; set; } public Password { get; set; } public Message { get; set; } public void Login() { this.Message = AuthServie.Login(Username, Password); } } } ``` > Login.vue ```HTML @viewmodel ServerViewModel.Login ``` ## Setup ```C# public void Configure(IApplicationBuilder app, IHostingEnvironment env) { app.UseDefaultFiles(); app.UseStaticFiles(); app.UseDotVue(c => { c.AddAssembly(typeof(Startup).Assembly); }); } ``` # Features - ASP.NET Core 2 - Server based ViewModel with attributes decorations: methods, watchs and props - Deploy `.vue` file as embedded resource (deploy only `.dll` file) - Support file upload - Support any external vue plugin - See `WebApp` for examples