Forms and Client-Server Interaction

Overview


So far, in the course, we’ve looked at building client-side functionality and server-side functionality separately. While client-side functionality provides user interface and a rich user experience, the server-side functionality provides APIs and data storage.

In this part, we look into integrating the two parts to create applications where the client interacts with the server. We start by learning about HTML forms, which make it easier to collect user input. Then, we look into the Fetch API, which is a standard way to make HTTP requests using JavaScript, and discuss the same-origin policy and cross-origin resource sharing (CORS) and their implications. This is followed by constructing functionality to interact with server-side APIs, and integrating this with shared state. Finally, we look into error handling when interacting with APIs.

The structure of this part is as follows.

Finally, at the end of the part, there is a recap and feedback chapter that briefly summarizes the part and asks for feedback on the part.

Loading Exercise...