I
I
Ilya Soldatenkov2019-02-26 14:28:10
Node.js
Ilya Soldatenkov, 2019-02-26 14:28:10

How to host a react + node.js application on a local network?

Locally developed an application on the mongo, express, react, node stack, contacted mlab for data storage.
Now it was necessary to transfer the application to the corporate local network.
Now the application is launched on port 3000 for the client and port 3001 for the backend, this is done in parallel via concurrently.
I’m not well versed in server matters, I don’t understand whether I need to build the project, upload the files to the local network folder, or whether I need to roll over the web server and put the front and back scripts together there.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
de1m, 2019-02-26
@de1m

"upload files to LAN folder" - this won't work, although it might, depending on what you mean by that.
In general, you need a web server that will distribute all this. Now you probably have all this running on esspress and in theory you just need to run it on the server, but on port 80 or 443 (HTTPS).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question