0

Backend and frontend connection

What is the best way to connect front end with back end? Or how can we accomplish it?

1st May 2018, 12:21 AM
Dipin
4 odpowiedzi
+ 3
I disagree with you, i have seen many applications with an API for communication between front-end and back-end, without exposing the API to 3rd parties. But there are more ways to Rome, that's for sure :)
1st May 2018, 6:17 AM
***
*** - avatar
+ 2
Adam is right. I would like to add you probably have to write something called an API. Simple: it just makes your back-end open to talk with your front-end. You will have to setup a fine architecturs for you application, like a presentation, business and data layer (common pattern). Then you will write REST or SOAP end points for you API :)
1st May 2018, 5:02 AM
***
*** - avatar
+ 2
An API is more for exposing the back end via methods to 3rd parties or people who you dont want to have total access to the raw code. As he is likely the only consumer of the data I dont see a need for him to create an API to access his own backend.
1st May 2018, 6:00 AM
Adam
Adam - avatar
0
You need a server side language. Node.js or C or php. Any of those run backend server side. Connecting to them depends on what you use front side. HTML can submit to php pages or you can use javascript for asynchronous requests (ajax). Pretty much the same for all of them.
1st May 2018, 3:28 AM
Adam
Adam - avatar