James Flower

C# .NET and Web Developer

Tag: asp.net core

There are 3 posts with the "asp.net core" tag.

Duplicate Validation Messages with FluentValidation in ASP.NET Core 6 MVC

Posted on
6 min read

Validation is an important step when handling data from a request in ASP.NET Core 6. FluentValidation is a popular .NET library which can make validation your models easier. It allows you to define your validation rules in a single place and integrate custom logic for your validation, which would require you to make a new filter if you used data annotations. However, in ASP.NET Core 6 MVC there was a change in the project template that could result in seeing data annotation produced vali

Read more...

Using ngrok with IIS Express and ASP.NET Core

Posted on
3 min read

Sometimes it can be helpful to quickly make the version of a project which is running on your development machine available to others. This could be for webhook integrations, demos, or some other reason. One of the tools you can use to achieve this is ngrok. ngrok creates a secure tunnel and expose the web server running on your machine (usually IIS Express for .NET Projects if you’re working on Windows). As a result, you can give a publicly accessible URL (such as https://a1c2e3g4i5kl.n

Read more...

Using a Vue.js SPA with ASP.NET Core Web API

Posted on
9 min read

I recently started working on a new side project and decided to implement it as a single page application (SPA). For this, I chose to build an API powered by an ASP.NET Core Web API and a Vue.js powered front-end to consume the API. I could find templates included in Visual Studio for AngularJS and React but nothing for Vue.js. Since I already have experience with Vue.js I decided to document the steps I used to create my starter project from a blank ASP.NET Core web app using ASP.NET Co

Read more...