On the Joint Development of react and node

problem description

react uses create-react-app to build the environment
node intends to use the Express framework

Q: want to know how to structure the project if you use node to develop the backend?
Q: do you want to open two services if you run it? -yarn start, node XXX.js

Project structure (create-react-app)

I hope that some passing bosses can help solve the doubts. I am very grateful to QAQ


Development requires two services, a back-end and a front-end test environment

in the real online environment, only the back-end service is needed, because you put the packaged page in the backend service and access it directly

Menu