Using local MongoDB instead of minimongo in new Meteor application development

Is it possible to start a new Meteor project using a local instance of regular MongoDB instead of the minimum default?

If so, how?

+4
source share
2 answers

Mongodb working with meteorite is still standard mongodb, minimongo is only a client-side implementation that allows the browser side to make collection requests.

Start a meteor like this with your terminal, as stated in unofficial meteor faq

MONGO_URL=mongodb://localhost:27017/database meteor 

EDIT:

You can read about it in projectdir/.meteor/local/build/README :

This is a Meteor application package. It has only one dependency, node.js (with the fiber package). To launch the application:

 $ npm install fibers@1.0.0 $ export MONGO_URL='mongodb://user: password@host :port/databasename' $ export ROOT_URL='http://example.com' $ export MAIL_URL='smtp://user: password@mailhost :port/' $ node main.js 

Use the PORT environment variable to set the port on which the application will listen. The default value is 80, but this will require root on most systems.

Learn more about Meteor at meteor.com.

+12
source

If you already have mongodb installed, just run the Meteor project with the command

 MONGO_URL=mongodb://localhost:27017/meteorprojectname meteor run 

I found the answer here

0
source

All Articles