text: // These are our required libraries to make the server work.
  /* eslint-disable no-console */
  /* eslint-disable no-unused-vars */
  import path from 'path';
  import express from 'express';
  import dotenv from 'dotenv';
  import fetch from 'node-fetch';
  import reload from 'livereload';
  import connectReload from 'connect-livereload';
  
  dotenv.config();
  
  const __dirname = path.resolve();
  const app = express();
  const port = process.env.PORT || 3000;
  const staticFolder = 'public';
  
  // Add some auto-reloading to our server
  const liveReloadServer = reload.createServer();
  liveReloadServer.watch(path.join(__dirname, staticFolder));
  
  // Configure express
  if (process.env.CONTEXT === 'development') {
    app.use(connectReload());
  }
  
  app.use(express.urlencoded({ extended: true }));
  app.use(express.json());
  app.use(express.static(staticFolder));
  
  app.use((req, res, next) => {
    res.header('Access-Control-Allow-Origin', '*');
    res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept');
    next();
  });
  
  app.route('/api')
    .get(async (req, res) => {
      console.log('GET request detected');
      const data = await fetch('https://data.princegeorgescountymd.gov/resource/umjn-t2iz.json');
      const json = await data.json();
      console.log('data from fetch', json[0]);
      res.json(json);
    })
    .post(async (req, res) => {
      console.log('POST request detected');
      console.log('Form data in res.body', req.body);
      // res.json({message: 'hellow world'});
      res.send('hello  world').status(200);
      // res.json({data: dataToSendToFrontEnd});
    });
  
  app.listen(port, async () => {
    console.log(`Example app listening on port ${port}!`);
  });
  
  if (process.env.CONTEXT === 'development') {
    liveReloadServer.server.once('connection', () => {
      setTimeout(() => {
        liveReloadServer.refresh('/');
      }, 100);
    });
  }