M
M
Miku Hatsune2016-02-01 22:31:40
JavaScript
Miku Hatsune, 2016-02-01 22:31:40

Where to read about such "architecture"?

I don’t know what to google and how to formulate a question, don’t throw slippers)
I would like to know about the client-server architecture (is that what it’s called?). That is, the user enters the site, JSs are loaded, which already through AJAX communicate with the restfull backend.
Where to read about such an architecture that would be simpler?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
VZVZ, 2016-02-02
@Hatsune-Miku

> It would be desirable to learn about client-server architecture (after all so is called?).
Strictly speaking, the client-server architecture is used in any site, even if it is without ajax (stupidly on forms).
And what's more, even if this is generally one static HTML page lying on a server without any PHP, then this is still a client-server architecture.
After all, the browser (or other client ), when you enter the path to each page in the address bar, makes a GET request to the server and receives a response with the contents of this page.
Read here to get started:
codeproject.com/Tips/1065669/How-To-Build-Web-Site...
First, there is a brief example of a very simple chat on forms with PHP + MySQL, without AJAX.
Then it is shown how to quickly add AJAX to such a chat, first with bare JS, then jQuery.
Then, on your own, you can think about how to improve this AJAX and bring it to the level of a real REST API, to which it is not only possible, but really convenient to connect from other clients (say, your own mobile application, like WebMoney Keeper, or like VK or Facebook) Hint: JSON, React.
Be sure to download and install the Fiddler sniffer. It allows you to take the study of the client-server architecture over HTTP / HTTPS protocols to a new deep level, to make a lot of secrets for mere mortals clear, to study the back-end of your site in order to use it as a REST API for third-party clients (and not only yours, but and strangers)))

A
Andrew, 2016-02-02
@iCoderXXI

Ember.JS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question