Stephan van Rooij

Software architect with a passion for home automation.

Angular2 CLI with ASP.NET Core

A

If you’re creating a new Angular2 application, you definitely want to use the Angular2 CLI. It help you setup a new Angular application. It has a build-in development server and it will generate Components for you. This means less typing (isn’t that always better?).

Getting started with Angular2 and .NET core

G

I’ve found a few nice articles to get you started with Angular 2 and .NET core. Normally it would be somewhat of a hassle to get started, but this should provide you with some working samples.

  1. Fast track your Angular 2 and .NET Core
  2. Angular 2 and .NET Core – your first component
  3. Angular 2 and .NET Core – route directly to your components

This is a series of posts by Jon Hilton and uses the ASP.NET Core Template Pack to get started.

Youtube link to Embed code

Y

Allowing users of your website to include a video into a message, can be done in two ways.

  1. You instruct all the users to go to the video page, find the embed code, let them upload html to your website and displaying the raw html to all users.
  2. You tell them to paste the link to the youtube page, and your website generates the embed code right from that link.

CreatedAt property with Entity framework

C

You’re building a new application, and you’re using Entity Framework Code First. Probably all your entities need an Id and CreatedAt/UpdatedAt property.

The sample below shows you how to define these properties in a base class, and (more importantly) how to set them correctly on every save, without setting them manually on every place where you’re changing things.

My open-source projects

My github repositories, last edited first.

A dotnet tool for parsing rss feeds and modifying a markdown file
A Teams app showing all your assigned and provisioned apps (no production!)
HTML 0 0
:speaker: Sonos control library, use this library in your own appliction.
TypeScript 64 13
Publish data from your Smart meter with a P1 interface to you MQTT server.
TypeScript 27 6
Control Sonos from dotnet
🔊 📖 Sonos api documentation for the local UPNP api and a generator to generate clients based on service discovery
TypeScript 19 7
Sonos2mqtt companion for Home Assistant
Python 4 0
:speaker: Sonos mqtt controller. Control your speakers from your mqtt server. mqtt-smarthome insprired.
TypeScript 61 17
Demo speed increase with batching for the Microsoft Graph API
HTML 3 0
Some usefull PowerShell snippets collected
PowerShell 4 0