The Monsters Weekly - Episode 74 - Customizing Bootstrap 4 in Your ASP.NET Core MVC Application

You want to treat your CSS like versioned code but still be able to take advantage of updates to CSS frameworks and libraries like Bootstrap 4. How do you make that work?

In this episode Monster James shows us how to frame up your project in such a way that you can customize variables, colors, sizes and even select which components are included in your custom version of Bootstrap, all the while maintaining an upgrade path and building from Bootstrap source.

Here’s some other episodes mentioned in the episode:

Yarn is the npm we need

The default package manager for node is called npm. Apparently it doesn’t stand for Node Package Manager but it sure seems like it should. Npm brags that they have have hundreds of millions of downloads per month. However that includes download from build servers and from package restores and doesn’t map to the number of people typing

npm install tsc

The Monsters Weekly - Episode 73 - Why Do I Need To Know What a Reverse Proxy Is?

For many developers, deployment may no longer be the same-old, same-old process of delivering an application to be hosted in IIS running on a Windows server. In fact, for any ASP.NET Core MVC application, your application will be running in Kestrel, but as a host Kestrel doesn’t support things like SSL termination, multiple port binding or multiple host headers? How are we going to make this work? And what is a reverse proxy?

Check out these previous episodes on nginx and kestrel:

Looking forward to your comments and questions!

The Monsters Weekly - Episode 72 - .NET Standard

.NET Standard is a new way of thinking about the API surface area of various different .NET frameworks and the platforms on which they run. Moving away from the confusion of portable class libraries .NET Standard allows for easier to comprehend libraries support matrices and a low friction approach to building libraries. 

 

References 

XKCD - Standards

Introducing .NET Standard

.NET Standard Platform

 

The Monsters Weekly - Episode 71 - Unit Testing with xUnit

Can you believe we’ve gone 70 episodes without talking about unit testing in ASP.NET Core? We’ve avoided it for as long as we could and it’s time to finally write some times. Join Monster Dave as he gives us a brief overview of xUnit and unit testing in ASP.NET Core!

Additional Resources:
Microsoft Docs on Unit Testing
xUnit Docs

The Monsters Weekly - Episode 70 - Accessing View Context from Tag Helpers

In some situations, it might be convenient to have access to some ViewData, ModelSate or even HttpContext information from within a Tag Helper. Join us as Monster Dave shows us how to do just that using ViewContext.

 

The Monsters Weekly - Episode 69 - Using Scopes To Improve Logging

Logging can help give you critical information about what was going on in your system when things went south. But how do you keep track of details for a request when the logs span multiple services? Join Monster James in this episode to discover how you can leverage logging scopes to help filter out a segment of a request and all the details related to a particular section of code.

The Monsters Weekly - Episode 68 - Creating Custom Conventions for ASP.NET Core MVC

In this episode we examine the way that MVC activates components using a set of default conventions, and we add a new convention that modifies the available actions available at runtime.

Here’s some links related to this episode:

 

The Monsters Weekly - Episode 67 - Gettting JavaScript to the Client

There are a number of ways to get your JavaScript from the server to the client, using loaders or zipping files. In this episode the Monsters talk off the cuff about how to move files from the server to the client. They also, weirdly, forget to talk about CDNs. 

 

The Monsters Weekly - Episode 66 - Content Security Policy Headers

Cross site scripting attacks or XSS are still one of the most common ways to attack a website. If you’re not properly sanitizing your inputs then you too could be vulnerable. Thank goodness that Content Security Policy headers came along to offer us a powerful tool to avoid falling pray to these attacks.

Resources

CSP header generator http://cspisawesome.com/