React JS CRUD Application with Asp.Net Core Web API + Entity Framework + Sql Server
React JS is a popular JavaScript library used for building user interfaces. It is widely used for creating single-page applications due to its efficient and flexible nature. In this tutorial, we will explore how to create a CRUD (Create, Read, Update, Delete) application using React JS with Asp.Net Core Web API, Entity Framework, and Sql Server.
Prerequisites
Before getting started, make sure you have the following tools and technologies installed:
- Node.js and npm
- Visual Studio Code or any other code editor
- Sql Server Management Studio or any other SQL Server management tool
- .Net Core SDK
Setting up the Asp.Net Core Web API
First, create a new Asp.Net Core Web API project in Visual Studio or using the command line tools. Then, set up the Entity Framework to work with Sql Server by creating a DbContext and defining the models for the database tables.
Creating the CRUD endpoints
After setting up the database and defining the models, create the CRUD endpoints in the Asp.Net Core Web API. These endpoints should include the operations for creating, reading, updating, and deleting the data from the database.
Building the React JS application
Next, create a new React JS application using the create-react-app command line tool. Then, build the components for the CRUD operations such as creating, reading, updating, and deleting the data. Use the fetch API or axios to make HTTP requests to the Asp.Net Core Web API endpoints.
Connecting the React JS application with the Asp.Net Core Web API
Finally, connect the React JS application with the backend Asp.Net Core Web API by making HTTP requests to the CRUD endpoints. Update the state of the components based on the data received from the API and handle user interactions for creating, updating, and deleting data.
Conclusion
In this article, we have learned how to build a CRUD application using React JS with Asp.Net Core Web API, Entity Framework, and Sql Server. By following these steps, you can create a fully functional application for managing and manipulating data in a database using modern web development technologies.
Thank you very much
Bhai ji hindi hi bol liya kro…
Hmari bhi sochlo thodi😅
do you have git hub to copy the files?
also I'm not getting the data from the sql server instead I'm getting the data defined inside of the const empdata = [{},{},{}]
hey bro can i get the source code of this please?
no source code?
you are perfect thanks sensei
perfect
thank you so much
Loved the video it really helped me in my project Thank You so much sir for bringing this content.
Hello sir…. I can't install react-bootstarp , it show the error
Could you please provide me the source folder link of Git
Very Good
Really awesome CRUD application…
Bhai Jaan Apka Tutortial Dekh Daala To Life Jhinga Lala.❣
Thanks Manoj, It was really helpful.
Hey Brother , just a question are these API are safe to use? or anyone could use those API to populate your database. I mean is there any security thing we could do add to these APIs?
23:55 for backend
Can you give me source code please
love it, so good introduction to react with .NET Core API!