Answer the question
In order to leave comments, you need to log in
ASP.NET MVC + Razor vs ASP.NET WEB API + SPA?
Good afternoon, web connoisseurs.
There is one replicated data collection system: Windows Service and LocalDB where this service periodically writes data. The system is distributed as an installation file (Wix). Now you need to do something like a Dashboard for it, i.e. such a Web application on which the user will be able to view and modify info. in the database (with the ability to access this web application from other hosts on the local network, and not just where it is located).
The system is simple, the idea arose to make an ASP.NET WEB API application, host it on the same Window Service and develop an HTML + CSS + ANGULAG.JS websitewhich will work exclusively with WEB-API.
Questions:
Answer the question
In order to leave comments, you need to log in
1. ASP.Net vNext new does not require IIS in principle, and you can run the site even on Linux.
2. We are waiting for the final ASP.Net 6 and do not care about IIS.
3. ASP.Net MVC is in no way at odds with SPA. I'm really just learning all this now, but I have both MVC and SPA on AngularJS and WEB API perfectly combined, those separate Views in MVC are like separate SPA applications for me.
If you use a purely WEB API, then you can host the application as a process or service, i.e. IIS is not required, the SPA application will be an HTML file and a JS file that will access the WEB API.
Want to MVC waiting for the next version of MVC (by the end of the year), will be able to run without IIS.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question