text: require('dotenv').config();
  const express = require('express');
  const cors = require('cors');
  const helmet = require('helmet');
  
  const home = require('./router/homeRouter');
  const articles = require('./router/articlesRouter');
  
  const app = express();
  
  app.use(helmet());
  app.use(express.json());
  app.use(cors());
  app.use(express.static('public'));
  
  app.use('/', home);
  app.use('/api/articles', articles);
  
  const port = process.env.PORT || 8080;
  app.listen(port, () => console.log(`Server is running on port: ${port}`));
  