title: How do I make server-side fetch calls?
body: <p>I have a React web application which currently does fetch calls client-side to update a dashboard with live information (let's say current weather, as an example), meaning that with an increase in users it will cause unnecessary traffic calls and could potentially crash this weather website.</p>
  <p>What I am trying to understand is how can I make those fetch calls be server-side? I have looked into creating a Node.js Express server, but I am unsure if it has the functionality to make fetch calls to a remote host.</p>
  <p>Here is my code with request-weather which does not really work, unfortunately.</p>
  <pre class="lang-js prettyprint-override"><code>const { response } = require('express');
  const express = require('express'); 
  const app = express(); 
  var fetch = require('node-fetch');
  const port = process.env.PORT || 5000; 
  
  app.use(express.json());
  
  // This displays message that the server running and listening to specified port
  app.listen(port, () =&gt; console.log(`Listening on port ${port}`)); 
  
  // create a GET route
  app.get('/request-info', (req, res) =&gt; { 
  
    res.send({ information: 'information call successful' });
  
  });
  
  app.get('/request-weather', (req, res) =&gt; {
      fetch('http://thisotherwebsite.com/weather-query-that-returns-json',
          {method: 'GET',
          headers: {' Accept': 'application/json'}})
          .then(res =&gt; {
              return res;
          })
      });
  </code></pre>