DEV Community

muncey
muncey

Posted on

Starting C# Backend using Razor pages

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
Enter fullscreen mode Exit fullscreen mode

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

Top comments (0)