ASP.net Core 1.0

NPM, BOWER, NUGET, GULP – The Four Horsemen of ASP.NET CORE Apps

It's not really a introduction Okay! So I’m not going to waste your time here giving some definitions of these four well known and broadly used tools. Rather I’ll show you how you can get most out of these tools while working on an ASP.net core web applications. I’m going to start with a blank project and will add these tools (except for NuGet. All Asp.net core apps support NuGet by default) one by one in the project. Finally you will have a good understanding…

Keep reading

Creating Simple APIs for your AngularJs App with .NET CORE Web API

Starting from the scratch So, we are starting with the empty Asp.net Core template. I’m using Visual studio 2015 and I’ve.NET Core RC2 SDK installed in my machine. Both of them are available for download in the following links, .NET Core SDK - https://www.microsoft.com/net/core Visual Studio 2015 - https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx Adding Dependencies We basically need two dependencies, one for serving static files (Microsoft.AspNetCore.StaticFiles) and another one for creating the APIs (Microsoft.AspNetCore.Mvc)…

Keep reading

Preventing XSRF in AngularJS Apps with ASP.NET CORE Anti-Forgery Middleware

What is Cross Site Request Forgery (XSRF/CSRF) Cross Site Request Forgery (XSRF/CSRF) is a type of a security breech where a hacker can trick the user into making unwanted requests to a web application where he/she is already authenticated. When a user is authenticated, his/her authentication cookie is stored in the browser’s storage. Since the cookie stays active unless the browser is closed and reopened, an authenticated user can be forced to make requests to the application from other unsafe applications too. For example, assume…

Keep reading

AngularJS and ASP.net Core 1.0 JumpStart (Part – III)

Creating the ASP.net Core 1.0 MVC project Okay, this part of the series will be pretty much big. So take time and read all the stuffs that I’ve done here. We will create a ASP.net Core 1.0 MVC project first. If you don’t have it installed already, please visit this link and follow the instructions to install it in your favorite operating system, https://docs.asp.net/en/latest/getting-started/index.html After installing, open up your Visual Studio 2015 and create a new…

Keep reading

AngularJS and ASP.net Core 1.0 JumpStart (Part – II)

Adding about and howto controllers Welcome to the part two of AngularJs and ASP.net Core 1.0 JumpStart! In part one we configured routing for our app and also attached views to those routes. We will implement the game logics in this post. To handle client side business logics, we will implement three angular controllers respective to the three views we have. Let’s implement the controllers for the howto and about views first since they are pretty much easier. In your app folder under js add two new…

Keep reading

AngularJS and ASP.net Core 1.0 JumpStart (Part – I)

Building the “Answer It!” app “Answer It!” is an app more like the famous TV show “Who wants to be a millionaire” but a bit different. Here a user will be presented with some predefined question sets. User will have to answer all the questions in limited amount of time and grab the glorious prize of “NOTHING”. I’ll build the app from scratch following some patterns and practices in both server and client side. In the end of this series you will have a good understanding on how to…

Keep reading