One query which has been in my mind for a long time is => "Why do we need a Nodejs server? If my React app is connecting to an external api (Java for eg) can't we have just the React front end ?"
You can use node.js, django, spring / struts, rails or anything. But, you have to find a way to serve assets using that specific framework or technology
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Sudarshan,
I have a query.
In development setup, we need to start the node server as well as the front end react app.
For production setup, we have built the react front end and have those as static data in build folder. Start only the node server.
Is my understanding right ? Please clarify.
You got that !
Because, we are serving the react build folder as the static asset of our nodejs backend π
Thanks for the clarification, Sudarshan.
One query which has been in my mind for a long time is => "Why do we need a Nodejs server? If my React app is connecting to an external api (Java for eg) can't we have just the React front end ?"
it's absolutely fine !
You can use node.js, django, spring / struts, rails or anything. But, you have to find a way to serve assets using that specific framework or technology