I
I
IDONTSUDO2019-08-21 08:15:49
System administration
IDONTSUDO, 2019-08-21 08:15:49

Can I run multiple React apps?

I took an order for the development of an ERP system. The system itself has 4 types of users . Everyone has different dependencies, and in general the director's application needs one kind of library, the manager's another, and so on. I don't really want to make the same application for all users. And so I want to make 4 applications. In the future, they will give me a server and I will configure the application on the server.
(I will use ubuntu 16.04 as the operating system).

QUESTION

How to configure all 4 types of applications? So that they would work from the same operating system, and be available on 4 different domains. Well, or at least what to smoke on this account?
well, or just so that they are available from different URI addresses. Same domain name...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Churmanov, 2019-08-21
@IDONTSUDO

If, as a result, there will be 4 different js bundles, one for each application, then just make 4 starting html pages, each of which will connect its own bundle. At the level of the web server (nginx / apache) for different urls / domains, we issue the desired page.
If you do it in a React + Express bundle, then each Express application can be hung on different ports, and the web server can proxy different domains / urls to the desired Express instance.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question