Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Web MongoDB Explorer
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
public
routes
views
.gitignore
.travis.yml
README.md
app.js
index.js
package.json
test.js

README.md

MongoMate Build Status

Standalone or ExpressJS mountable MongoDB Explorer.

Demo Screenshot

Installation

Standalone

Install Globaly from NPM:

npm install -g mongomate

Run:

mongomate [mongodb uri] [admin username] [admin password]

If [mongodb uri] isn't provided it will default to localhost.

Example:

mongomate mongodb://mongohost.com:2751 user5432 pa55w0rd 

Express Mounted

npm install mongomate
// mongoClient can be a mongodb server connection or a mongodb server (no db uri)
var mongoClient = 'mongodb://localhost';

// Create the MongoMate Instance
var mongomate = require('mongomate')(mongoClient);

// If you need authentication for the admin client replace the previous line with
var mongomate = require('mongomate')(mongoClient, {
    auth {
        username: 'ADMIN_USERNAME',
        username: 'ADMIN_PASSWORD',
    }
});

// Add this line in your app.configure(function() { ...
app.use('/mongomate', mongomate);

Now when you go to http://yourapp/mongomate, you'll get a MongoMate Interface

Something went wrong with that request. Please try again.