The Monsters Weekly - Episode 45 - Generating Complex, Realistic Data For Tests and Prototypes

If you have complex object graphs that you’d like to use in your prototype or test data, chances are you have a swamp load of muck to write to wire those objects up, especially if you want your data to look realistic.

In this episode of the ASP.NET Monsters, James walks us through creating sample data in more complicated scenarios where properties need special weighting of random distributions, where setter methods need to be invoked, or where you need to compose properties and object graphs.  All of this is done with the GenFu library.

See our intro to GenFu here.

GenFu is an opensource project created and curated by the Monsters on GitHub.

You can try GenFu out live on our sample site.

The Monsters Weekly - Episode 44 - Developing with .NET Core on Ubuntu Desktop

.NET Core 1.0 is officially released and Monster Dave decides to take Linux for a spin. Join us for a tour of developing with .NET Core on Ubuntu Linux. Watch Dave show off his rusty Linux skills and see how he manages to solve a problem by debugging his test app with Visual Studio Code.

The Monsters Weekly - Episode 43 - 'Hello Bundler Minifier with Mads Kristensen'

In today’s episode, Mads Kristensen sets us straight on the new Bundler Minifier and the direction the ASP.NET team has decided to take in the default project template. Mads takes us through the Bundler Minifer, what it is capable of, how it differs from System.WebOptimization and Gulp, and most importantly why it exists in the first place.

The Monsters Weekly - Episode 42 - Goodbye to Gulp

A special guest episode with fellow Canadian ASP.NET MVP Maxime Rouiller. In this episode we talk about how the ASP.NET Core team have been pulling back on some cool technologies, especially gulp. Watch to see if we think it is a mistake. 

The Monsters Weekly - Episode 41 - Accessing SQL Server

I hear tell that you can’t access SQL server from ASP.NET Core. That’s simply not the case! In this episode we jam on connecting an ASP.NET Core application to SQL server. 

In this episode we make use of the fantastic Dapper library for light weight ORM functionality.

Release notes for SQL Data Access

The Monsters Weekly - Episode 40 - Understanding and Enabling CORS in ASP.NET Core

There are many legitimate reasons why you’d want to allow your application to share data with other sites, but we don’t want to do it in such a way that it allows wide-open access to your API or controller surface area. Often, we have a set of resources we want to share, with a set of origins that we trust to use our site appropriately.

Browsers today do not allow Cross Origin Resource Sharing by default, but because of the way the request-response works, you can enable it on the server where the resource is located. In this video, Monster James explains how to relax the default server policy and enable CORS for trusted origins.

For more information on the security vulnerabilites avoided by disabling CORS by default in the browser, please check out this entry in Wikipedia.

The Monsters Weekly - Episode 39 - Creating Tokens for Basic API Authentication

If you’ve already got a built-in data store and want to extend your API to a third party service, chances are you’ll need a way to let those users call into your application in a secure way. 

In this episode, Monster James dives into a mechanism to create per-user tokens that can easily be revoked or invalidated, while still providing a straightforward way for callers to self-generate the access artifacts they need to use your API.

Note that in broader scenarios something more akin to IdentityServer might be more suitable, allowing different scopes and sets of claims for users who log in through different contexts (web versus API, for example). You can find out more about IdentityServer on GitHub and in a future episode of the Monsters.

The Monsters Weekly - Episode 38 - Yeoman Reprised

One of the best things about .NET Core is that it is portable to other platform not just for deployment but for development. If you’re running on Linux or OSX then you won’t have access to the full version of Visual Studio. That might be good or it might be bad depending on your point of view. There are tools in place, however, to help you out if you don’t use Visual Studio. One of these tools is Yeoman. 

Yeoman is a templating tool which allows you to generate whole projects or just individual files from templates. Similar to the way you right click add and select a template in visual studio Yeoman is cross platform and it is great.

If you’re interested in more information about Yeoman check out these links: