dotnet new with Angular, Aurelia, Knockout, React, Redux and Vue

Hi Friends,

Thought to share new additions around dotnet cmd. I guess with these additions, this may be the perfect timing for building SPA (Single Page APP) with ASP.NET Core as backend and any of the below listed libraries as Front-end  choice.

  • Angular
  • Aurelia
  • Knockout
  • React
  • React and Redux
  • Vue

In order to get these options; first of all, we need to install SPA template with below command.

dotnet new --install Microsoft.AspNetCore.SpaTemplates::*. The * is the package version; so this is 
getting the latest templates from NuGet.Upon successful installation, it will show the below options.

1st

Therefore, I can go ahead and create my APP with these many options. Below I am creating the same using angular.

2nd

With the above command in place, it created my project successfully.

3rd

Once, the project is created, it should get restored. Hence, dotnet restore is the command which does the magic. Below is the glimpse for the same.

4th

At this instant, I can now go ahead and build the app using dotnet build cmd.

5th

Below is the folder structure of the project.

6th

We can open the same using “Code .” cmd. This will launch the visual studio code in the context of application.

7th

8th

At this instant, if I do dotnet run, then this will launch the program.

9th

10th

Other things are just basic. You can refer the same on my other ASP.NET Core posts or videos. Also, in case you guys are building asp.net core app using visual studio code. Then you can utilize my extension for asp.net core meant VS-Code.

ASP.NET Core Snippet

ASP.NET Core Snippet

Thanks for joining me.

Thanks,
Rahul Sahay
Happy Coding

727 total views, 2 views today

One thought on “dotnet new with Angular, Aurelia, Knockout, React, Redux and Vue

  1. Pingback: No module files found error when trying to generate components

Comments are closed.