I had combined react app to api by
app.use('/', express.static('client/build'))
and some start script you will find in package.json.
To run it for developing you had to change some code.
node index.js
nodemon index.js
you have to change axios base url at https://github.com/tanay-pingalkar/LetsTalk-chatapp/blob/main/client/src/components/axios.js and endpoint at https://github.com/tanay-pingalkar/LetsTalk-chatapp/blob/main/client/src/components/roomChat.js to localhost:9000
cd client
npm start
nodemon index.js
thats it
reset all changes we had made
then
cd client
npm run build
cd ..
nodemon index.js