text: const express = require('express');
  const path = require('path');
  const parser = require('body-parser');
  const router = require('./router.js');
  const cors = require('cors');
  const dotenv = require('dotenv').config();
  
  const port = process.env.port || 9000;
  const app = express();
  
  app.use(cors())
  app.use(parser.json());
  app.use(parser.urlencoded({extended: true}));
  
  app.use(express.static(path.join(__dirname, '../client/dist')));
  
  app.use('/', router);
  
  app.use('/about', express.static(path.join(__dirname, '../client/dist')))
  app.use('/skateparks', express.static(path.join(__dirname, '../client/dist')))
  
  app.listen(port, () => console.log(`connected to port ${port}!`))