Implement micro service with micro front end using ASP.NET MVC - asp.net

I have a huge application which was developed in vb.net.
Our goal to convert this application to C# micro services, but in incremental manner.
So what ever new functionality that we are going to add to the existing application, we are planning to create them as a separate Micro Service with micro front end UI.
Since these are small api's with UI, I am trying to understand whether we can implement this API + UI in a single ASP.NET MVC project as a web component.
I tried 2 options:
Created an ASP.NET MVC application and added angular to same project. Is this better way to mix MVC and Angular in a single project?
I tried creating a sample ASP.NET MVC application with razor ui. But didn't understand how I can use this as a microfrontend component.
I am good in ASP.NET MVC and C#, but not that great in Angular. So planning to create microfrontend component in ASP.NET MVC razor.
Is it possible to do this? As I have to use this micro ui component in vb.net, I need this to be generated as js file to use further.

Related

Use Blazor server-side from an ASP.NET Framework monolith

In my company we still use an ASP.NET Framework website with a lot of different controllers and views (monolith). Now I was wondering how I can replace some of those views with Blazor server-side (as a Razor-component package). It is possible to run a new ASP.NET Core instance (with Blazor server-side and their Razor-components) next to the monolith. I was wondering how I can easily and properly forward traffic from the monolith to the Blazor views and how I can easily forward the websockets-communication. If this is possible, I could strip down the old monolith by replacing the views with Razor-components, step-by-step.

Integrating asp.net mvc with asp.net WebForm

There is a problem that I have two applications.
One is used ASP.NET MVC, while the other is used ASP.NET WebForm.
I wonder if there are some ways to integrate two applications.
You can say anything about the idea of the integration or show some links talk about this.
Thank!!!
PS: I do know that Asp.net Webform is out of time,so do not tell why not change the Webform to MVC.
You could have them both as hybrid application. To do this (Visual Studio 2013+):
Click New Project > Web Forms, In the window select template as Web Forms and select options on Web Forms and MVC.
Add your existing files for Web Forms and MVC in the same solution.
Now config your Global.asax for MVC and declare appropriate routes and bind them in code.
Optional: You could also Scaffold to have WebAPI in your solution.
You this link for details of implementation with sample project.

ASP.NET MVC Areas with angularJS app

How to use AngularJS framework with Asp.net MVC "Areas"?
I am developing an application with having large user base and large database tables (i.e. around 5 Millions of row for 8/10 tables). So, I had plan to use AngularJS for handling data manipulation and UI (within .cshtml page). I had a knowledge on how to develop Asp.net MVC web application with AngularJS app, but my application has multiple Asp.net MVC "Areas". I am using asp.net MVC5. I have a following questions.
Is it good to have a AngularJS framework for my application requirement?
What is the efficient way to use AngularJS framework with Asp.net MVC "Areas"?
Thanks!
If you are dealing with large datasets, as per suggestions found below ReactJS would be a good fit.
If you have to choose AngularJS because of its full stack of functionality available in the framework, you may very well go with isolated mini SPAs in your areas
Links:
http://blog.backand.com/angularjs-vs-react/
https://www.codementor.io/reactjs/tutorial/reactjs-vs-angular-js-performance-comparison-knockout

Spark and ASP.NET

I started playing with Spark in an ASP.NET MVC project. However I have an existing ASP.NET project that I can't port over to ASP.NET MVC, and was wondering if there is a way to use Spark with ASP.NET?
Yes, Spark View Engine is awesome. And when you've tried it, there is no going back.
Spark requires either ASP.NET MVC or Castle Monorail, so I guess mixing MVC and WebForms would be the only way to start using Spark in a WebForms-project..
Start by combining WebForms and MVC (with Spark) in the same project. Then start migrating .aspx/code-behind into .spark/controls, file by file.
Remember, this refactoring could be pretty costly/time-consuming in a large project.
Plugging ASP.NET MVC into an existing ASP.NET application

SOA with asp.net MVC

I know that asp.net MVC supports webservices call,
But I am asking in a wide scope that I have developed MVC application and I want to build an ERP that Integrates both asp.net 2005 application and my own MVC application.
So is it possible?
I am just an infant to think like this.
And this question comes in my mind when I saw a first video of webcast of WCF.
Yes you can - might need some modification of the asp.net app to include web service layer.
i would watch the MVC Storefront series http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit
for some tips on structuring the application and repository+ pattern
Yes, it is possible. I would build service calls (WCF, REST etc... what ever you are comfortable with) for your ERP. Once you have that your ASP.NET app can call them and so can your MVC app.

Resources