text: const express = require('express');
  const db = require('./config/connection');
  const routes = require('./routes');
  
  const PORT = process.env.PORT || 3001;
  const app = express();
  
  app.use(express.json());
  app.use(routes);
  
  db.once('open', () => {
      app.listen(PORT, () => {
          console.log(`Server is running on port ${PORT}`);
      })
  })