text: const express = require("express");
  const app = express();
  const server = require('http').createServer(app);
  const io = require('socket.io')(server);
  const path = require('path');
  var five = require("johnny-five");
  var board = new five.Board();
  
  const PORT = process.env.PORT || 3000;
  
  const db = require("./models");
  
  app.use(express.json({ limit: '50mb' }));
  app.use(express.urlencoded({ limit: '50mb' }));
  
  app.use(express.urlencoded({ extended: true }));
  app.use(express.json());
  app.use(express.static('public'));
  
  
  app.use(express.static(path.join(__dirname, './public')));
  app.use(express.static(path.join(__dirname, './images')));
  app.use(express.static(path.join(__dirname, './weights')));
  app.use(express.static(path.join(__dirname, './dist')));
  app.use(express.static(path.join(__dirname, './nodemailer')));
  
  board.on("ready", function () {
    var servo = new five.Servo(10);
    require('./public/js/auth-receiver')(servo, io);
    require('./routes/api-routes.js')(app);
    require('./routes/html-routes.js')(app);
    
    db.sequelize.sync({ force: true }).then(function () {
      server.listen(PORT, function () {
        console.log("App listening on PORT " + PORT);
      });
    });
  });
  