Tutorial by Examples

Helpful when you want to grab a copy of a production database to play around with locally. mongodump --host some-mongo-host.com:1234 -d DATABASE_NAME -u DATABASE_USER -p DATABASE_PASSWORD This will create a local dump directory; within that directory you'll see a directory with your DATABASE_NAME...
While your Meteor app is running locally: meteor mongo --url
Set the MONGO_URL environment variable before starting your local Meteor app. Linux/MacOS Example: MONGO_URL="mongodb://some-mongo-host.com:1234/mydatabase" meteor or export MONGO_URL="mongodb://some-mongo-host.com:1234/mydatabase" meteor Windows Example Note: don't u...
Set MONGO_URL to any arbitrary value except for a database URL and ensure no collections are defined in your Meteor project (including collections defined by Meteor packages) to run Meteor without MongoDB. Note that without MongoDB, server/client methods alongside any packages related to Meteor's u...
You can start the mongo shell by running the following command inside your Meteor project: meteor mongo Please note: Starting the server-side database console only works while Meteor is running the application locally. After that, you can list all collections by executing the following command...

Page 1 of 1