Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

412
Vistas
How to get database data from live site instead of localhost node server

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.

Conclusion:

¿How can I connect my database to a server that's always live?

I'm using:

  • mongodb
  • mongoose
  • express
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

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

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda