Angular 2 and MongoDB, How can I use it?

34 views
Skip to first unread message

Sykes Creatives

unread,
Jul 6, 2017, 4:47:02 PM7/6/17
to Angular and AngularJS discussion
I want to implement a NoSQL type database for my web apps. I was using Firebase but im not a fan of the restrictions and cant really afford the premium version of it at the moment, so MongoDB was my next coice. Seeing that MongoDB is based on NodeSQL is it possible to have a db hosted along side my app? How would I go about implementing that?

Sander Elias

unread,
Jul 11, 2017, 12:57:36 AM7/11/17
to Angular and AngularJS discussion
Hi Sykes,

Yes that is possible. Iirc, mongo even has a direct rest interface you can hook up to the web. However, this is a very high risk. I would never hook up any DB directly to the web. Put in a server in between so you have control over the access to the DB. 
Have a look at the mean stack, you can solve it in a similar way.

Regards
Sander

Tito

unread,
Jul 11, 2017, 2:10:58 PM7/11/17
to Angular and AngularJS discussion
here is a very simple app I wrote that uses MongoDb with express.js in the middle

mahendra patidar

unread,
Jul 15, 2017, 12:39:37 PM7/15/17
to Angular and AngularJS discussion
Reply all
Reply to author
Forward
0 new messages