H
H
hexelder2015-06-20 01:21:11
Angular
hexelder, 2015-06-20 01:21:11

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:

  1. If there is no IIS , then how can a site be placed on the intranet so that it is available not only to localhost, but also to other network members, or is it still impossible to do without a web server?
  2. How normal is this, or is it still better to raise IIS when installing with ASP.NET MVC on board for such tasks?
  3. I also ask you to clarify the development trend of Web applications: how long will ASP.NET MVC remain relevant under the onslaught of SPA ? Web frameworks do not stand still, you look at some ANGULAG.JS and think - ASP.NET MVC , Razor why is it all now ..

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Roman, 2015-06-20
@yarosroman

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.

S
Sergey, 2015-06-22
@senal

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.

V
VanKrock, 2015-09-22
@VanKrock

You can take a look at NancyFX . Just like in the new asp.net, iis is not required, you can use self hosting or various others, such as azure or wcf, it can also work under linux. B in general is a very simple framework in itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question