Answer the question
In order to leave comments, you need to log in
Do I need to build the project for production (node/express)?
I have a project that consists of two parts backend on node express(api) and frontend is also node but with react js. frontend is built through react-scripts and there you can run the react-scripts build command, but I don’t know what to do with backend.
Do I understand correctly that I only need to upload the build to the server for the front?
What to do with api server?
PS react server side, AWS server. if it matters
Answer the question
In order to leave comments, you need to log in
If the API comes as a completely separate code and you use only those JS features that are supported by the current version of nodejs, then nothing much needs to be done. Install the dependencies and run.
For server-rendera, you will most likely have to build the application in order to properly translate jsx and other imports.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question