I would simply like to know how is the best route to connect a react application to SQL database? I have read almost the whole internet at this point all I simply want to find out is how to link up a react front end to a SQL back end so that the data within the server can be displayed through the website.
-
You should create an API on a backend server. You should call this backend server from the React application. The backend server process the request call the sql server and handle back the result.Peter Ambruzs– Peter Ambruzs2019-12-18 09:37:45 +00:00Commented Dec 18, 2019 at 9:37
-
how would i create the API backend server ?Henry Peters– Henry Peters2019-12-18 10:46:27 +00:00Commented Dec 18, 2019 at 10:46
-
It depends what kind of programming language you prefer. And where is your database. I do not think I can teach you in a comment to create a service. But I can point you to a direction. If you prefer javascript you can create a nodejs backend with express. If you like Java I recommend Spring Boot for backend.Peter Ambruzs– Peter Ambruzs2019-12-18 12:12:08 +00:00Commented Dec 18, 2019 at 12:12
-
okay thankyou ! I have created a basic express react project. Now I just need to connect this to a mssql database.Henry Peters– Henry Peters2019-12-18 17:03:26 +00:00Commented Dec 18, 2019 at 17:03
Add a comment
|