3

I have started looking at Meteor and tried out some examples, but I'm puzzled by something: I have installed Meteor and not MongoDB on my machine, but Meteor seems to create its own instance of MongoDB.

  1. How does this work?

  2. Am I able to develop a separate application that can also perform CRUD operations on this database that Meteor is spinning up?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
yakka
  • 353
  • 4
  • 9
  • See the answers to [this question](http://stackoverflow.com/questions/22178363/reason-behind-the-large-size-of-meteor-js-apps-projects). – David Weldon Oct 06 '14 at 03:26

2 Answers2

0
  1. Meteor is shipped with a MongoDB installation
  2. I think you can. The meteor mongo command gives the MongoDB URL to the database Meteor spins up.
Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
pahan
  • 2,445
  • 1
  • 28
  • 36
0

meteor command will start its own instance of MongoDB.

You can then use meteor mongo to connect to the MongoDB database, which is usually running on the application's port+1, for example, app:3000 -> mongodb@:3001. So you could use any MongoDB tool to connect (for example, robomongo).

$ meteor mongo
MongoDB shell version: 2.4.9
connecting to: 127.0.0.1:3001/meteor
Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
dcsan
  • 11,333
  • 15
  • 77
  • 118
  • NewB: Is the mongodb that comes with meteor any different from the original mongodb? because monogodump and mongorestore command from system shell doesn't work. – psun Aug 21 '15 at 05:52