Category ASP.NET Core

Docker compose with ASP.NET Core, EF Core and the PostgreSQL image

This article show how an ASP.NET Core application with a PostgreSQL database can be setup together using docker as the deployment containers for both web and database parts of the application. docker-compose is used to connect the 2 containers and the application is build using Visual Studio 2017. Code: https://github.com/damienbod/AspNetCorePostgreSQLDocker Setting up the PostgreSQL docker […]

Creating an ASP.NET Core Docker application and deploying to Azure

This blog is a simple step through, which creates an ASP.NET Core Docker image using Visual Studio 2017, deploys it to Docker Hub and then deploys the image to Azure. Thanks to Malte Lantin for his fantastic posts on MSDN. See the links at the end of this post. Code: https://github.com/damienbod/AspNetCoreDockerAzureDemo 2017.02.03: Updated to VS2017 […]

Angular Lazy Loading with Webpack 2

This article shows how Angular lazy loading can be supported using Webpack 2 for both JIT and AOT builds. The Webpack loader angular-router-loader from Brandon Roberts is used to implement this. A big thanks to Roberto Simonetti for his help in this. Code: Visual Studio 2015 project | Visual Studio 2017 project Blogs in this […]

Building production ready Angular apps with Visual Studio and ASP.NET Core

This article shows how Angular SPA apps can be built using Visual Studio and ASP.NET Core which can be used in production. Lots of articles, blogs templates exist for ASP.NET Core and Angular but very few support Angular production builds. Although Angular is not so old, many different seeds and build templates already exist, so […]

Creating an ASP.NET Core 1.1 VS2017 Docker application

This blog shows how to setup a basic ASP.NET Core 1.1 application using Visual studio 2017 and Docker. Code: https://github.com/damienbod/AspNetCoreVS2017Docker 2017.02.03 Updated to VS2017 RC3 msbuild3 This article from Swaminathan Vetri demonstates how to setup everything for an ASP.NET Core 1.0 application. Now the application needs to be updated to ASP.NET Core 1.1. Open the […]

Implementing a Client White-list using ASP.NET Core Middleware

This article shows how a client white-list could be implemented using ASP.NET Core middleware checking the Remote IP address of the request. If the client IP is on the white-list, no restrictions exist. Code: https://github.com/damienbod/ClientIpAspNetCoreIIS The middleware uses an admin white-list parameter from the constructor to compare with the remote ip address from the HttpContext […]

EF Core diagnosis and features with MS SQL Server

This article shows how Entity Framework Core messages can be logged, and compared using the SQL Profiler and also some of the cool new 1.1 features, but not all. All information can be found on the links at the bottom and especially the excellent docs for EF Core. Code: https://github.com/damienbod/EFCoreFeaturesAndDiag project.json with EF Core packages […]