Combine .Net with C# and HTMX for a streamlined development process that yields a dynamic front end without writing a line of JavaScript.
Credit: Mindscape studio / Shutterstock
There are many stacks on the server side and one of the most longstanding and capable ones is the .NET platform using C#. .NET is broadly comparable to the Java platform, and over the years, the two have been competitors and mutual influencers. Each draws inspiration from the other. In this article, we’ll develop a simple server-side generated application using C#. We’ll throw in a dash of HTMX for dynamic front-end interactivity without the JavaScript.
Create a .NET C# project
To start, you’ll want the .NET CLI tool installed on your system, which is a fairly painless procedure. Once that’s done, you’ll have a dotnet
command, which you can use to start a new application like so:
$ dotnet new mvc -n QuoteApp
This command creates a /QuoteApp
directory. If we move into the new directory, we’ll see …