title: Node.js Express module exports
body: <p>im getting this error</p>
  
  <blockquote>
    <p>app.get is not a function</p>
  </blockquote>
  
  <p>this is my config/express.js</p>
  
  <pre><code>var express = require('express');
  
  
      module.exports = function(){
  
      var app = express();
  
      app.set('port',3000);
  
      return app;
  
      };
  </code></pre>
  
  <p>and this is my server.js</p>
  
  <pre><code>var http = require ('http');
  
  var app = require ('./config/express');
  
  
  http.createServer(app).listen(app.get('port'), function(){
  
      console.log("Express Server Runing on port"+ app.get('port'));
  
  
  });
  </code></pre>
  
  <p>what im doing wrong?</p>