text: 
  // Require the Express Module
  var express = require('express');
  
  // Create an Express App
  var app = express();
  
  // Require body-parser (to receive post data from clients)
  var bodyParser = require('body-parser');
  
  var mongoose = require('mongoose');
  mongoose.connect('mongodb://localhost/basic_mongoose');
  mongoose.Promise = global.Promise;
  var UserSchema = new mongoose.Schema({
      name: String,
      age: Number
  })
  mongoose.model('User', UserSchema);
  var User = mongoose.model('User');
  
  // Integrate body-parser with our App
  app.use(bodyParser.urlencoded({ extended: true }));
  
  // Require path
  var path = require('path');
  
  // Setting our Static Folder Directory
  app.use(express.static(path.join(__dirname, './static')));
  
  // Setting our Views Folder Directory
  app.set('views', path.join(__dirname, './views'));
  
  // Setting our View Engine set to EJS
  app.set('view engine', 'ejs');
  
  // Routes
  // Root Request
  app.get('/', function(req, res) {
  
      let context = {};
  
      User.find({}, function(err, users) {
  
          if(err){
              console.log("database retrieval error");
          }
          else{
              res.render('index', {user_list: users});
          }
      })
  })
  
  // Add User Request 
  app.post('/users', function(req, res) {
      console.log("POST DATA", req.body);
      // This is where we would add the user from req.body to the database.
  
      var user = new User({name: req.body.name, age: req.body.age});
  
      user.save(function(err){
          if(err){
              console.log("Something went wrong");
          }
          else {
              console.log("Successfully added user!");
              res.redirect('/');
          }
      })
  })
  
  // Setting our Server to Listen on Port: 8000
  app.listen(8000, function() {
      console.log("listening on port 8000");
  })
  