Microsoft's Dotnet-new tool makes it easier to create JavaScript WEB programs

Source: Internet
Author: User
Tags dotnet

Microsoft has released a set of tools that use their dotnet-new tools and a flexible approach to using node. js to quickly build JavaScript-based Web applications.

The Dotnet-new tool is part of the. NET core tool for starting a new project with simple commands. As part of ASP. NET Core JavaScript Services, Web developers can now use the same commands to launch new single-page applications (SPAS).

Steve Sanderson wrote in an article that the purpose of using these templates was to make the initial easier: "We often hear that building these applications (using the angular or react spa) is complicated. Integrating server and client code together can be a challenge, or even simply to initially select an efficient project plan. ”

The availability of these project types depends on the Microsoft.AspNetCore.SpaTemplates NuGet package. Once the installation is complete, use such commands to enable angular, react, reactredux, Aurelia, and knockout to start: dotnet new Reactredux

The source code for these templates is in GitHub. Because this is a. NET core tool, installing one of these templates creates an ASP. "Angular" is a angular application.

Elsewhere in the JavaScript community, options such as the Create-react-app and angular CLI provide an easy way for you to launch these applications, known as node. js and NPM. Based on the dotnet-new. NET provides developers with options that they might be more familiar with the Microsoft environment. But, in some ways, these new. NET tools will be more comprehensive.

For example, the angular and Reactredux templates include the default server-side rendering (which can be turned off). All of these project types use Webpack to bundle front-end code (in addition to the Aurelia template), and hot Module replacement is enabled by default.

Although this is a. NET application, but it still uses node. js through Spaservices. Spaservices uses Microsoft.AspNetCore.NodeServices to enable ASP. NET developers to use the node. JS system without actually running node. JS directly. Sanderson says it all happens "behind the scenes": for example, to pre-build a angular or react component on a server, it needs to execute JavaScript on the server. It is implemented through Nodeservices, which launches hidden node. JS instances and provides a quick and robust way to call from. Net.

Sanderson is also the creator of Knockout.js.

Microsoft Office 365 Business Edition Downloads >>>>

"Article source of HPE control, original not easy, reproduced please indicate the source"


Microsoft's Dotnet-new tool makes it easier to create JavaScript WEB programs

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.