D
D
Denis Vyachenkov2018-09-12 19:43:34
Node.js
Denis Vyachenkov, 2018-09-12 19:43:34

What technologies can be used to deploy frontend on another server?

Good evening! Tell me who faced such a problem. There is a backend on one server. You need to deploy frontend on another server with minimal effort. I see it this way, in the api on the server, the elements of the template are "protected". Let's say that we provide a person with some script that he places on his server and, accordingly, these elements are deployed on the frontend side. Servers are different.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Alekseev, 2018-09-12
@vsyakiyjr

We did a similar implementation. Embedded chat, which is distributed from another server. There are many options, but we use 2:
1. A script that connects to an iframe from the server that hosts it. To do this, you need to enable CORS for the frontend server
2. The assembled js script, which is thrown to the frontend and connected, as usual, is mounted into a certain DOM element.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question