One Page Project Templates for .NET 4.5 and Angular

Was there an even more confusing / difficult time to create a web developer using the Microsoft stack? Actually this is not my question ... I know that the answer is categorical. :)

The single page application template that ships with VS 2013 is disastrous.

I worked on creating a similar project template that uses Angular JS on the client, but I start spinning my wheels, transferring external functions a bit (openId / oauth).

I believe that this is due to the lack of a good, single point of truth and the current documentation for the Katana authorization / security bits, and also because of how the unreadable client-side code is in the SPA template in visual studio 2013 .

I know that I can get through this, but while I am struggling with this, I am wondering:

Are there any good communities, proposed project templates, or basic code examples that use .NET 4.5 (MVC5 / Web Api 2), Angular JS, new ASP.NET authentication material, and Katana packages?

There is HotTowel.Angular , but it does not take a position in security. It is also a Nuget package that cannot or should not dictate as much as the corresponding project template can be.

+7
angularjs single-page-application owin katana
source share
1 answer

I agree with your observations. I found the following setting that seems to fit your requirements, and I think it works very well (I don't have a template), I would suggest the following:

  • Create an empty WebApi2 project and accept authentication / authorization here
  • Use regular index.html in the base directory as the launch point for your angular application. You can either support your client packages using nuget, npm or bower.
  • Use whatever technique you like to organize your client code.

Personally, I would create 3 projects: one for the client code (mydomain.com) One for your api (api.mydomain.com) and one for your level Model / Repository / Data Access.

Update Here is an open source project that may be what you are looking for!

+7
source share

All Articles