Image for post
Image for post

At Unite.nl we prefer Angular as the frontend stack for the applications we develop and we use Azure as our cloud infrastructure. Over the last few months we’ve learned what it takes to properly host an Angular app in Azure.

In a few steps i’ll explain what we’ve done to run an Angular app on Azure with:
* A custom domain
* Free SSL
* Clean URLs (using Angulars PathLocationStrategy)
* Cache busting
* Compression

1. Setup Azure Storage

The output of your Angular build is a bunch of static HTML / Javascript / CSS files. You can put these on an Azure App Service Web App, but Azure also offers a cheaper and faster option: Azure Storage. …


Recently I created an WebJob to do some background processing for our company’s web app. It took me some time find out how to deploy the WebJob using Azure Devops (most documentation is about full framework WebJobs), so I’d like to share my deployment script with you.

  1. Add an Azure Powershell task to your build or release pipeline
Image for post
Image for post

2. Change the variables in the top of the script below to match your resource group / web app / webjob names.


Every developer knows the struggle of generating PDF files. Even though in the .NET world there are some pretty good packages to do this, it basically comes down to coding the PDF line by line. Since this is a time consuming and monotonous task, producing a lot of low value code we decided to do this differently

A tool like Altova Stylevision allow you to visually design a document and The Apache FOP Project takes the XML containing the data and an XSLT file containing the ‘design’ . That sounds a lot friendlier, but how to integrate this JAVA component into a .NET world? …


The last couple of weeks I’ve been playing around with Kubernetes (popular abbreviation: k8s). Kubernetes is the #1 container orchestration tool that helps you deploying and scaling containers.

It took me some time figuring out how to get my simple .NET Core MVC app running in Kubernetes on Azure. I started off with some very basic Docker knowledge, and it turned out Kubernetes throws many more concepts in your face you need to get to know!

I will show you the steps it took to get my .NET Core MVC app running on a managed Kubernetes cluster in Azure. I might skip a lot of details here. If you want to understand some concepts better (like Docker, private container registries, Kubernetes) I suggest you google them during the steps they’re mentioned in. …


If you’re interested in adding SSL / HTTPS to your Azure Web App you can buy a certificate within Azure, but if you use LetsEncrypt you can add SSL for free (downside: renew your certificate every 3 months)

I’ve seen scripts & websites automating these steps. I could not get them to work for this specific scenario (.NET Core MVC Webapplication + Azure Web App) and that’s why I wrote down the steps to get it to work. If you do not have this setup, there might be an easier way.

Prerequisites


Even though containers have been a popular way to ship applications for a couple of years it was only until recently I found the perfect problem to solve with a container.

A while ago I created the little web app ourmixtape.net that allows you to create a shared playlist based on the favorite Spotify tracks of you and your friends / colleagues / family members. A feature of ourmixtape.net is you can let it regenerate the playlist every night or every week, so when your favorite songs change, so will your shared playlist.

Traditionally I would execute this background task inside a Windows Service, but I didn’t want to buy and maintain a VM or VPS because of the costs and the overhead it would generate. I really don’t need a fullblown server that’s always running. …


Cross post from the company blog where I posted this as a lesson learned from visiting NDC Oslo.

The last couple of years there has been a strong focus on microservices in about every architecture talk I’ve heard or seen. I believe every developer, project manager and business owner sees advantages in having multiple small services over one big application. I also believe there are big advantages but like anything in IT there are always trade offs.

What’s a (micro)service?

I believe the term microservice is easy to misunderstand. It has the word micro in it, and we developers easily relate that to the amount of code that runs the service. For me that always felt weird, why do all the hassle to expose some kind of functionality (over HTTP for instance) that could have easily been managed as a regular dependency. When I attended NDC Oslo last week I gained more knowledge on this topic by doing a workshop on how to create a service oriented architecture. …


This a crosspost of the write-up I created after we (a small team of volunteers) migrated the website corsozundert.nl to Azure to prepare it for the yearly high traffic weekend. First posted here.

On the first sunday in september the small town of Zundert (The Netherlands) receives a lot of visitors. On this day the biggest flower parade of the world takes place in the streets of Zundert. Volunteers (and mostly inhabitants of Zundert) have been working on giant floats covered in flowers for almost half a year!

Image for post
Image for post
A float displaying the famous painter ‘Vincent van Gogh’ covered entirely in flowers. Vincent van Gogh was born in Zundert.

The first weekend of september

Image for post
Image for post

Just before, after and during this weekend, corsozundert.nl …

About

Marc Mathijssen

.NET developer living in The Netherlands. I write stories because it helps me sharing and remembering knowledge.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store