title: The server is not running
body: <p>The server is not running with the code below:</p>
  
  <pre class="lang-js prettyprint-override"><code>import express from 'express';
  import mongodb from 'mongodb';
  
  const app = express();
  const dburl = 'mogodb://localhost/crudwithredux';
  
  mongodb.MongoClient.connect(dburl, {useNewUrlParser: true}, function (err, db) {
      app.get('/api/games', (req, res) =&gt; {
          db.collection('games').find({}).toArray((err, games) =&gt; {
              res.json({games});
          });
      });
  
      app.listen(8080, () =&gt; console.log('Server is running on localhost:8080'));
  });
  </code></pre>
  
  <hr>
  
  <pre><code>`{
    "name": "crud",
    "version": "0.1.0",
    "private": true,
    "dependencies": {
      "express": "^4.17.1",
      "mogodb": "^3.1.9",
      "react": "^16.8.6",
      "react-dom": "^16.8.6",
      "react-redux": "^7.1.0",
      "react-router": "^4.4.0-beta.8",
      "react-router-dom": "^5.0.1",
      "react-scripts": "3.0.1",
      "redux": "^4.0.4",
      "redux-devtools-extension": "^2.13.8",
      "redux-thunk": "^2.3.0"
    },
    "scripts": {
      "start": "react-scripts start",
      "build": "react-scripts build",
      "test": "react-scripts test",
      "eject": "react-scripts eject"
    },
    "eslintConfig": {
      "extends": "react-app"
    },
    "browserslist": {
      "production": [
        "&gt;0.2%",
        "not dead",
        "not op_mini all"
      ],
      "development": [
        "last 1 chrome version",
        "last 1 firefox version",
        "last 1 safari version"
      ]
    },
    "devDependencies": {
      "babel-cli": "^6.26.0",
      "babel-preset-es2015": "^6.24.1",
      "nodemon": "^1.19.1"
    },
    "proxy": "http://localhost:3000"
  }
  `
  </code></pre>