I'm very new to backend. I created a random quote machine app with the MERN stack. I know it is not necessary to mess with backend in a profound way if all I want to do is to display some quotes, but I'm using this project as an introduction to the field.
Thing is I want to get the data to display in my react components from when deployed to a live site using Netlify but I get this error:
Failed to load resource: the server responded with a status of 404 ()
My data displays perfectly when I turn the server on and use the app from the localhost, so the problem is in getting the data from a live site without the need to have my server up and running.
¿How can I connect my database to a server that's always live?
I'm using:
you should first develop a server as you wish like an express server or whatever you want. specify an endpoint for each of your actions; to begin you can send requests to outside API: like jsonPlaceholder and like so to fetch data and in your react, app sends a request to that endpoint