title: Connecting MongoDB to the front-end?
body: <p>I've built a database with <code>Node.js</code> and <code>MongoDB</code>, and I'm writing an <code>Angular.js</code> app that should call in entries from my database, as well as being able to write in those entries.</p>
  
  <p>I'm aware that there are some security issues with writing directly from javascript to a database, but I'm completely new to this sort of thing. What's more, I can't find any instructions on how to send data from <code>MongoDB</code> to my front-end so that I can actually use it! </p>
  
  <p>How do I tie the two together? In <code>Node.js</code>, I was using a javascript <code>require</code> function to load in my database and read/write from it, but I can't figure out a way to do this in the browser. In <code>node</code> I was using the <code>mongojs</code>module to connect the two together, but this doesn't work in my Angular app as I can't use <code>require</code>.</p>
  
  <p><strong>The main question is: How do I load in MongoDB to the front-end?</strong></p>
  
  <p>EDIT: I think this is a more basic question about calling MongoDB to the front-end, rather than angular-specific. If I'm wrong, let me know.</p>