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.
- React and Redux
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.
Therefore, I can go ahead and create my APP with these many options. Below I am creating the same using angular.
With the above command in place, it created my project successfully.
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.
At this instant, I can now go ahead and build the app using dotnet build cmd.
Below is the folder structure of the project.
We can open the same using “Code .” cmd. This will launch the visual studio code in the context of application.
At this instant, if I do dotnet run, then this will launch the program.
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.
Thanks for joining me.
1,477 total views, 1 views today