text: const express = require('express');
  
  const app = express();
  const morgan = require('morgan');
  
  app.use(morgan('dev'));
  require('dotenv').config();
  
  app.use(express.json());
  
  const routes = require('./routes/router');
  
  app.use('/', routes);
  
  const mongoDB = require('./database/dbConnection');
  
  mongoDB();
  
  app.listen(process.env.PORT, () => {
    console.info(`Running on http://localhost:${process.env.PORT}`);
  });
  