Join Kazi Nasrat Ali for an in-depth discussion in this video Scaffold a project with MVC 5, part of Building React and ASP.NET MVC 5 Applications.
- [Instructor] Let us now start to build a project. We are going to create the back end first, so let's go ahead and scaffold the project. Click File, then New, then Project. Click on ASP.NET Web Application. .NET Firmware that I have selected is 4.6.1. You can also use 4.7.1, or 4.7.2. I'm going to name the application as React A-S-P-X and putting it in this folder.
I have a folder in C drive for exercise files. And then the chapter number, which is zero two here. And then the video number, zero one. And the folder name "end" indicates that this will be the state of this project when we finish with this video. Let's click on Okay. And here we want to select M-V-C. As for authentication, let's select individual user accounts and click Okay. We are not using Azure, click cancel.
Project is being built now. We will use EntityFramework for our data related work. So let's install into the framework, click on Project and go to look at package management screen and such for EntityFramework. We have it here already. So it is already installed, the version is 6.1.3 but let's update to 6.2.0.
Click Okay. So the EntityFramework is now updated. Next we will change the ConnectionString for Entityframework. We have ConnectionString here, so we're going to change that. I have created a cold Snipit folder with some code and the ConnectionString is there so let's go there. Copy this ConnectionString and paste it here.
Save, and Build, and Run. Alright, so our project is coming up correctly, the scaffolding is done correctly, so next we are going to create the Terra models.
- Creating the back end
- Scaffolding a project with MVC 5
- Setting up the service API for data
- Creating the front end with React
- Handling events for React elements
- Responsive UI and mobile friendliness
- Securing the API
- Debugging the front end and back end