3

Secure you ASP.NET Core MVC and Web API app using Google

Last time we took a look at the big picture when it comes to authentication/authorization for your ASP.NET Core app. Now it’s time to tackle a common scenario – securing your .NET Core Web app (even when accessed via Angular). To keep things simple for this example, we’re going to require our users to log in as soon as they …

2

Login & Authentication for your ASP.NET Core Web API – The Big Picture

You’re building an ASP.NET Core Web API which is primarily going to serve a Single Page Application (Angular, ReactJS or something else) and/or other clients. You realise that you need to make your API secure. If you don’t, it won’t take much effort for someone to start poking around, doing whatever they like to your data. It’s surprisingly difficult to …

Making sense of the different versions of .NET Core (runtime and SDK)

The .NET Core journey has been confusing for most. We’ve had alphas, betas and release candidates. All the way through, both the Runtime and Tools (SDK) have been changing at a rapid pace. Microsoft decided late on to drop the new project.json file in favour of a revamped csproj project file. Consequently your applications created using older versions of the …

2

Add MVC to your ASP.NET 1.1 application using the dotnet command line

If you’re using Visual Studio Code or another text editor to work on your ASP.NET Core web app then you’ll want to know how to add (and start using) MVC/Web API. Last time out we started with a minimal ASP.NET Core web app using this command. The web template doesn’t automatically set up MVC (there are other templates that do) …

Create a minimal ASP.NET Core 1.1 web application using the command line

You want to build a .NET Core web application and keep it to the bare minimum files and dependencies to start with. We all remember the “Basic” vs “Empty” MVC templates from Visual Studio’s recent past. Do you want your app empty, or really empty?! Happily you can go minimal using .NET Core and start with nothing more than a …

5

Use ASP.NET Core 1.1 with .NET 4.6 (without Visual Studio)

If you want to try out ASP.NET Core but still target the full framework (e.g. 4.x) you can. All you need is a simple tweak to your .csproj file. In earlier versions of .NET Core this change was made via project.json but Microsoft retired project.json in favour of an MSBuild compatible csproj file. Why would I want to target .NET …

59

Create an Angular 2 and .NET Core app that can be edited using Visual Studio 2017

In the recent series on using Angular 2 and .NET Core to check the weather we used the ASP.NET Core Template Pack to save time manually installing/configuring Webpack, Node, Angular etc. That works well if you want to create your new projects using the new project wizard in Visual Studio 2015. But what if you’re using using Visual Studio 2017? …

18

Send form input via an Angular 2 component to ASP.NET Core Web API

This is post 6 of 6 in the series “Checking the weather with Angular 2 and ASP.NET Core” So far we’ve set up a basic Angular 2 and .NET Core web application and made it retrieve the weather for London which is then displayed via an Angular 2 component. However, unless all of your users live in London, you’ll want …

8

Fetch the current weather using ASP.NET Core Web API and OpenWeather

This is post 5 of 6 in the series “Checking the weather with Angular 2 and ASP.NET Core” Sometimes you need to access someone else’s API from your web application. Here we’ll take a look at calling the OpenWeather API from a Web API controller in your .NET Core web app. So far we’ve created an Angular 2 .NET Core …

11

Display the weather using Angular 2 and .NET Core Web API

This is post 4 of 6 in the series “Checking the weather with Angular 2 and ASP.NET Core” So far we’ve created a new Angular 2/.NET Core project, designed our first basic HelloWorld component and configured routing to go directly to it. But let’s say you want to do something more interesting (and useful), you want to get some data …