.NET Core SPA + Docker : Simpler

Just kind of replacing my last post to make the getting started even simpler. After playing a little bit more with Docker, I've realized there's no need to use compose, build, YAML or any of these fancy stuff for such a simple implementation. With 10 commands, you'll have your brand new spa, docker image, and container up-and-running. Let's have a look... The commands below assume you have the pre-requisites listed in the previous post and VS Code installed Open your console and start typing md SpaDocker cd SpaDocker dotnet new angular dotnet restore dotnet publish -c Release -o ./build touch »

.NET Core SPA + Docker

Playing with Docker has been on my bucket list for while and I've finally put aside some time to get started. So this was the easiest way I've found to start a brand new SPA using .NET Core and dockerize it. I'm not going to do any introduction to Docker itself, if you want to know more about it, check this video or go to their website. Pre-requisites DotNet Cli SPA Templates Install Docker for Windows Creating SPA Open the console (I use Cmder) and navigate to a folder you want to create your application. In the commands below, I »

.NET Core Running on IIS

I'm configuring an application that we've migrated to .NET Core. It's hosted on Windows Virtual Machines running IIS. It seems like an easy task, right? It has many challenges. The published folder of my application has a wwwroot directory which my IIS application would point to in the past. Not anymore. The web.config in the root folder points to the application's executable. One thing to note is that it also requires a new module AspNetCoreModule and if you don't have it installed you'll get a 404 response. <?xml version="1.0" encoding="utf-8"?> <configuration> < »

Moving from EF6 to EF Core

I always liked using the latest and greatest and in most of the cases this choice comes as a great challenge. We started building a project a couple of years ago in ASP.NET vNext (or whatever they called it at the time) beta4 with all the latest tooling: dnvm, dnx, dnu, etc... We were not brave enough at the time to use Entity Framework 7 for obvious reasons, it was simply not ready, so we used EF6 and it was kind of happy days until we were ready to release the first version of the application and ready to »

Angular + .NET Core: Drinking Game With SignalR

This idea came on one of the Angular Hack Days where I wanted to create something to present by the end of the day where I could get everyone involved. The game is quite simple, everyone will load the page and as people connect to the site more glasses of beer will show up on the screen, as you tap or click the amount of beer in your glass will decrease, the first person to empty their glass wins the game. That's what you see when you have the app running with 3 people connected to it: Of course, I »