Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use MongoDB with mean.io

I am new to server side javascipt. I have started with mean.io. I gained some understanding of nodejs, express, mongodb last few days. I have my mean.io app but I don't know what's the right way to connect to mongodb and query it from my js files.
Is there a guide/blog which can help me work with mongodb from my server side javascript files?
All I want is to store some data mongodb and fetch that at some later point.

like image 929
Mady Avatar asked Nov 19 '25 21:11

Mady


1 Answers

By default, you should see there is a mean-dev collection in your mongodb. The best way I thought to get familiar with mongo and mean is play around the code (for instance, the article package). Inside /packages/article/system/, you will see how the blog example works.

That works great for me.

like image 128
wilbeibi Avatar answered Nov 22 '25 15:11

wilbeibi