text: const express = require('express');
  const mongoose = require('mongoose');
  const app = express();
  const port = 3000;
  const db = 'mongodb+srv://elis_marcela:elis_marcela@cluster0.xxdqe.mongodb.net/Escola?retryWrites=true&w=majority';
  
  mongoose.connect(db, { useNewUrlParser: true, useUnifiedTopology: true });
  
  app.set('view engine', 'ejs');
  app.set('views', __dirname, 'views');
  app.use(express.urlencoded({ extended: true }));
  app.use(express.json());
  app.use(express.static(__dirname + '/public'));
  
  const school_router = require('./routers/school-router');
  
  app.use('/students', school_router);
  
  app.get('/', (req, res) => {
      res.render('views/pages/index');
  })
  
  app.listen(port, () => {
      console.log(`Server is listening on ${port}.`)
  })