M
M
Mishcake2022-04-08 20:22:04
Node.js
Mishcake, 2022-04-08 20:22:04

How to access the script and where to host it?

Hey! Please direct me where to dig to solve the problem)

There is a static page on html / js, on which the user can set some parameters in the form.

This form should call the Node script that will make requests to the API.

But I don't understand how I can access it from my script, which is on a regular hosting? And how to transfer there some parameters that the user selects at the front?

PS With PHP, it was clearer - just upload script.php to the host and send data to it. But I don’t want to choose PHP for this solution, I practice with JS) Please direct

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolai Savelyev, 2022-04-09
@Mishcake

It's the same with Node.js.
You write a handle to the API on the node and transfer data there from the front as if you were transferring it to php.
From the front, nothing needs to be changed. On the back, you do the processing of GET / POST requests in each handle

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question