text: var dotenv = require('dotenv');
  dotenv.load();
  var express = require('express');
  var app = express();
  var path = require('path');
  var cors = require('cors');
  var cookieParser = require('cookie-parser');
  var bodyParser = require('body-parser');
  var dbHandler = require('./routes/dbHandler');
  var port = process.env.port;
  
  app.use(cors());
  app.use(bodyParser.json());
  app.use(bodyParser.urlencoded({ extended: false }));
  app.use(cookieParser());
  app.use(express.static(path.join(__dirname, 'assets')));
  
  app.use('/api', dbHandler);
  
  app.get('/', function (req, res) {
      res.sendFile(path.join(__dirname + '/index.html'));
  });
  
  app.listen(port, () => console.log(`Example app listening on port ${port}!`));
  