Questions tagged [client-server]

Warning: PLEASE AVOID USING ALONE. The client-server model is a centralized structure where a server fulfills specific tasks (such as HTTP, SMTP, etc.) for numerous clients on demand. Reserved for concerns related to communication between clients and servers. Remember to include the appropriate language tag when utilizing this feature (e.g. [python]).

What is the common approach for organizing an express and react based application - should the server and client code be stored together in one project or kept in separate projects or folders

Coming from a Microsoft background, I have always kept server and client applications in separate projects. Now, I am venturing into writing a client-server application using Express as the backend and React JS as the frontend. As a newbie to these tools, ...

Server-side script for communicating with client-side JavaScript applications

Currently utilizing a JavaScript library that uses a JSON file to display content on the screen in an interactive manner. (::Using D3JS Library) While working with clients, it is easy to delete, edit, and create nodes which are then updated in the JSON fi ...

What is the simplest method for transferring data to and from a JavaScript server?

I am looking for the most efficient way to exchange small amounts of data (specifically just 1 variable) between an HTML client page and a JavaScript server. Can you suggest a script that I can integrate into my client to facilitate sending and receiving d ...

Submitting data through a PHP server-side script

I am facing a dilemma regarding why the form is not submitting and directing me to the index.php page. Being new to PHP, I am attempting to utilize the User object. Below is my current progress: <main> <header> <h1>Cr ...

Effectively monitoring coordinates on both the client and server sides

I'm currently in the process of developing a multiplayer game using websockets, node, and JavaScript. I need advice on the most effective approach to update client information and manage their coordinates on the server. The method I am using at the mo ...

An issue has arisen while parsing a JSON array that is set up to accept

My code works perfectly fine when I provide a single data element in my JSON file. However, when I input an array of elements, it starts displaying "undefined" on the client side. Below is the snippet of my server-side code: var app = require('express')() ...

What is the best way for a background service operating within a web server to update the client browser on its progress?

As a newcomer to many things, I am open to any suggestions, input, existing projects, or models that you may have. Currently, I am facing the following challenges: The background service is responsible for managing a queue of tasks in either C++ or Py ...

Invoke a Python function from JavaScript

As I ask this question, I acknowledge that it may have been asked many times before. If I missed the answers due to my ignorance, I apologize. I have a hosting plan that restricts me from installing Django, which provided a convenient way to set up a REST ...

Can a PHP script be run and its result included in another script before being displayed?

I have a PHP script located at http://example.com/myapp/myscript.php that is currently running on an Apache server. When this URL is accessed from a mobile app, the script performs its logic and sets HTTP headers and body with data in JSON format, which th ...