text: require('dotenv').config()
  const express = require('express')
  const bodyParser = require('body-parser')
  const cors = require('cors')
  const http = require('http')
  const path = require('path')
  const helmet = require('helmet')
  const compression = require('compression')
  
  const app = express()
  
  app.use(bodyParser.urlencoded({ extended: true }))
  app.use(express.json({}))
  app.use(express.static(path.join(__dirname, 'public')))
  app.use(cors())
  app.use(compression())
  app.use(helmet())
  app.disable('x-powered-by')
  app.disable('etag')
  
  const port = process.env.EXPRESS_PORT || 3000
  const server = http.createServer(app)
  
  require('./src/cron')
  require('./src/presenters/routes')(app)
  app.get('/', (_, res) => res.sendFile(path.join(__dirname, './public', 'index.html')))
  app.use((_, res) => res.status(404).json({ error: [{ title: '404', message: 'Route not found' }] }))
  
  server.listen(port, () => console.info(`Server start in host: http://localhost:${port}`))
  
  module.exports = app