Creating an ASP.NET Core and React templated app

Let's open Visual Studio and carry out the following steps to create our templated app:

  1. In the start-up dialog, choose Create a new project:

  1. Next, choose ASP.NET Core Web Application in the wizard that opens and click the Next button:

  1. Give the project a name of your choice and choose an appropriate location to save the project to. Click the Create button to create the project:

  1. Another dialog will appear that allows us to specify the version of ASP.NET Core we want to use, as well as the specific type of project we want to create. Select ASP.NET Core 3.0 as the version and React.js in the dialog, and then click the Create button, which will create the project: 

If ASP.NET Core 3.0 isn't listed, make sure the latest version of Visual Studio is installed. This can be done by choosing the Check for Updates option on the Help menu.
  1. Now that the project has been created, let's press F5 to run the app. After a minute or so, the app will appear in a browser:

We'll find out later in the chapter why the app took so long to run the first time. Great—we've created the ASP.NET Core React SPA. Now, let's inspect the backend code. 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.154.185