text: // Importing the dependencies | Importando as dependências
      const express = require("express");
      const path = require('path');
      const mysql = require("mysql");
      const dotenv = require('dotenv');
      const cookieParser = require('cookie-parser');
      const cors = require("cors");
  
  // changing where the environment variables will be stored by dotenv | definindo onde ficarão armazenadas as variáveis de ambiente pelo dotenv 
      dotenv.config({ path: './.env'});
  
  // starting express | iniciando o express
      const app = express();
  
  
  
  // making the connection to database | Fazendo a conexão com o banco de dados
  const db = mysql.createPool({
      connectionLimit: 10,
      host: process.env.DATABASE_HOST,
      user: process.env.DATABASE_USER,
      password: process.env.DATABASE_PASSWORD,
      database: process.env.DATABASE,
      port: process.env.DATABASE_PORT,
  
  });
  
  module.exports = db;
  
  // setting the publicDirectory | configurando o diretório public
      const publicDirectory = path.join(__dirname, './public');
  
  // Parse URL-encoded bodies (as sent by HTML forms)
      app.use(express.urlencoded({ extended: false }));
  // Parse JSON bodies (as sent by API Clients)
      app.use(express.json());
  // Parse Cookie Parser
      app.use(cookieParser());
  
      app.use(cors());
  
  
  // setting where the express will search the public files || definindo onde o express buscará os arquivos públicos
      app.use(express.static(publicDirectory));
  
  // setting the view engine | definindo o mecanismo de visualização
      app.set('view engine', 'hbs');
  
  // verifying the connection to the db | verificando a conexão com o bd
      db.getConnection( (error) => {
          if(error) {
              console.log(error)
          } else {
              console.log("MYSQL Connected...")
          }
      });
  
  //Define Routes | Definindo as rotas
      app.use('/', require('./routes/pages'));
      app.use('/auth', require('./routes/auth'));
      app.use('/equipments', require('./routes/equipments'));
      app.use('/customers', require('./routes/customers'));
      app.use('/users', require('./routes/users'));
      app.use('/orders', require('./routes/orders'));
  
  // verifying the connection to the server | verificando a conexão com o servidor
      const PORT = process.env.PORT || 3000;
      app.listen(PORT, () => {
          console.log(`Our app is running on port ${ PORT }`);
      });