Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using local MongoDB instead of minimongo in a new Meteor app development

Tags:

mongodb

meteor

Is it possible to start a new Meteor project using a local instance of regular MongoDB in place of the default minimongo?

If so, how?

like image 803
redbaron76 Avatar asked Dec 12 '22 17:12

redbaron76


1 Answers

The mongodb running with meteor is still the standard mongodb, minimongo is only the client side implementation of this that allows the browser side to make queries to a collection.

Start meteor like this with your terminal as mentioned on the unofficial meteor faq

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

EDIT:

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

This is a Meteor application bundle. It has only one dependency, node.js (with the 'fibers' package). To run the application:

$ npm install [email protected]
$ 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 where the application will listen. The default is 80, but that will require root on most systems.

Find out more about Meteor at meteor.com.

like image 56
Tarang Avatar answered Dec 29 '22 00:12

Tarang