text: const express = require('express');
  const bodyParser = require('body-parser');
  const mongoose = require('mongoose');
  const routes = require('./routes');
  const app = express();
  const PORT = process.env.PORT || 3001;
  
  // Have express use body parser
  app.use(bodyParser.urlencoded({extended: true}));
  app.use(bodyParser.json());
  
  app.use(routes);
  
  // Connect to Mongoose
  mongoose.connect(process.env.MONGODB_URI || 'mongodb://localhost/reactreadinglist');
  
  // Start the API server
  app.listen(PORT, function() {
      console.log(`API Server now listening on PORT ${PORT}`);
  });