Starting C# Backend using Razor pages

github logo ・1 min read

I am creating a backend for my SPA using C#, ASP.NET Core and using the dotnet CLI to generate the project as follows:

dotnet new webapp -o MyPortal

Doing this will create a new project with the following structure:
Project structure in Visual Studio Code

And then running dotnet run will run a website on your local PC that can be accessed at https://localhost:5001.

View of new site

twitter logo DISCUSS
Classic DEV Post from Sep 23 '19

Pay your rent from open source 💸

muncey profile image