Search code examples
meteor

How do I use an existing MongoDB in a Meteor project?


Let's say there is a running MongoDB server for a GUI client (by wxPython) for a while.

How could I connect my new Meteor project to my already existing MongoDB?


Solution

  • Use the environment variable MONGO_URL. Something like:

    export MONGO_URL=mongodb://localhost:27017/your_db
    

    Replace your_db with meteor or whatever db you want to use.