N
N
nickname133842019-08-19 18:51:17
JavaScript
nickname13384, 2019-08-19 18:51:17

How to work with Node js backend and React js frontend?

Hello everyone, I decided to try to work with a real Rest Api (with this https://openweathermap.org/api ) because of the CORS policy, javascript alone is not enough, you need a backend.
In this regard, the question is, now you always need two servers to run one for node js and the other for react js?
And how is it all then uploaded to the hosting? Maybe somewhere there is documentation or a video suitable or an example ready

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2019-08-19
@nickname13384

In this regard, the question is, now you always need two servers to run one for node js and the other for react js?

React client library and html with application you can give to any static server Apache/Nginx/etc.
Create React
App : Deployment

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question