Meet Mongol, the insanely handy development package for Meteor. Starting today, you'll never have to enter the console to play with your collections again. Instead, Mongol lets you view and edit your client side documents in the browser. And because Mongol is a debugOnly package, it does not compile to production code.
Mongol will automatically detect your collections and display your client-side documents. A reactive count of the documents is always available, and document browsing is just a click away.
Mongol is able to insert, update and/or remove any document in your database, regardless if you have insecure
on or the permissions to allow it. Read the security post to learn how this works.
Mongol won't render into the DOM until you activate it. You can activate by pressing Control + M, or with Session.set("MeteorToys_display", true)
.
Mongol configures automatically. To get started, simply run:
$ meteor add msavin:mongol
After installation, open your app in the browser and press Control + M to toggle it. For a demo, go to http://mongol.meteor.com.
Mongol Pro is available as part of the Meteor Toys suite. The Pro version allows you to reset your MongoDB collections and includes a trash can for restoring removed documents. To see the other tools available, go to the Meteor Toys website.
Does Mongol require insecure to work? No, Meteor has its own set of method's that enable it work without disrupting your application permissions.
Will Mongol ship to my production application? No, Mongol is a debugOnly package, meaning Meteor's build process will not compile it into production code.
Are there any other development tools that complement Mongol? In addition the the Meteor Toys bundle, JetSetter is an open-source package like Mongol but for Session variables.
How do I hide collections? Mongol allows you to hide individual collections and provides a shortcut for Velocity.
Meteor.startup(function () {
// make sure to use collection name, not variable
Package["msavin:mongol"].Mongol.hideCollection("collectionName");
// shortcut for Velocity
Package["msavin:mongol"].Mongol.hideVelocity();
});
- Available on GitHub and Atmosphere
- Documentation: Security, Package Compatibility, and Changelog
- Licensed under The MIT License
- Designed to work with JetSetter, the Mongol equivalent for Sessions
- Part of the Meteor Toys Bundle