Relative Content

Tag Archive for javascriptreactjsnode.jsexpress

Api data not retrieving in frontend ( Expressjs, reactjs )

im stuck i built an api with express and im trying to retrieve a games array, i can see it on postman everything is working fine and also in my mongodb the array is not empty but when i try to retrieve it in my front end i have an empty array . Do you have an idea on how to solve this ?

Express and Static React App, 200 but no json

I don’t really know what I am doing wrong. For a second I was able to go to the endpoint and I got the json output. Now no matter what I do I am just routed to a blank page on the site, I get the 200 status and an html document. I am using express for the back server and React for the front but statically built. I am running this all via cpanel.

How to Connect my backend with Frontend and send a post request to backend with React and Node/ Express (Environment : Replit Mobile App)

Yes you have heard it right actually i am building a project on the Replit mobile app as it is able to do most of the work that’s why I devloped a project in this app due to financial reasons but the question is not about that is there anyone who worked with Replit mobile app and has devloped on that if yes then please help in connecting my backend(express/node) and frontend(react) so that I can submit my form data to my backend currently I am facing issues when trying to do that and also do tell if that is not possible on mobile version or I am doing mistakes in my code as i processed a get
request in a pretty good manner but is facing issues from post request

Data is not coming at server end

I have created a registration form. So when user filled that data, expected behaviour is, at server business logic should be applied on that data.
Through req field data should come at server. But it is not coming. req.body is empty