title: Node.js + Angular = Uncaught ReferenceError: require is not defined
body: <p>I'm creating an Express.js API on a Node.js server. The API is used to access data stored on the server. I also keep a log of who's accessing the API in a database.</p>
  
  <p>I'm trying to create an admin section that will use Angular.js to display the admin access logs neatly. I used the Angular Express Bootstrap seed to start my project:</p>
  
  <p><a href="https://github.com/jimakker/angular-express-bootstrap-seed/">https://github.com/jimakker/angular-express-bootstrap-seed/</a></p>
  
  <p>My problem is that I need the controllers.js to access node modules but it doesn't seem to know that node exists. Here is my error:</p>
  
  <pre><code>controller.js
  
  var mongo = require('mongodb');
  [Uncaught ReferenceError: require is not defined]
  </code></pre>
  
  <p>How can I use node modules in Angular.js files?</p>