I created a database with Node.js and MongoDB , and I am writing an Angular.js application that should call records from my database, as well as the ability to write to these records.
I know that there are some security issues when writing directly from javascript to the database, but I'm completely new to this. What more, I cannot find any instructions on how to send data from MongoDB to my interface so that I can use it!
How to tie them together? In Node.js I used the javascript require function to load into and read from / write to my database, but I cannot figure out how to do this in the browser. In node I used the mongojs module to connect the two together, but this does not work in my Angular application, since I cannot use require .
The main question: how to load into MongoDB in an interface?
EDIT: I think this is a simpler question about calling MongoDB for an interface rather than an angular-specific one. If I am wrong, let me know.
javascript mongodb
Jascination
source share