old_contents: const express = require('express');
  const path = require('path');
  
  const app = express();
  const PORT = process.env.PORT || 5000;
  
  // Priority serve any static files.
  app.use(express.static(path.resolve(__dirname, '../react-ui/build')));
  
  // Answer API requests.
  app.get('/api', function (req, res) {
    res.set('Content-Type', 'application/json');
    res.send('{"message":"Hello from the custom server!"}');
  });
  
  // All remaining requests return the React app, so it can handle routing.
  app.get('*', function(request, response) {
    response.sendFile(path.resolve(__dirname, '../react-ui/build', 'index.html'));
  });
  
  app.listen(PORT, function () {
    console.log(`Listening on port ${PORT}`);
  });
  
new_contents: require('dotenv').config()
  
  const express = require('express');
  const path = require('path');
  
  const getAccessToken = require('./utilities/access_token')
  
  const app = express();
  const PORT = process.env.PORT || 5000;
  
  // Priority serve any static files.
  app.use(express.static(path.resolve(__dirname, '../react-ui/build')));
  
  
  getAccessToken(process.env.CLIENT_ID,process.env.CLIENT_SECRET)
    .then((result) => console.log(result.access_token))
    .catch(error => console.error(error))
  
  // Answer API requests.
  app.get('/api', function (req, res) {
    res.set('Content-Type', 'application/json');
    res.send('{"message":"Hello from the custom server!"}');
  });
  
  // All remaining requests return the React app, so it can handle routing.
  app.get('*', function(request, response) {
    response.sendFile(path.resolve(__dirname, '../react-ui/build', 'index.html'));
  });
  
  app.listen(PORT, function () {
    console.log(`Listening on port ${PORT}`);
  });
  
subject: test getAccessToken function