Skip to content
This repository

Web-based MongoDB admin interface, written with Node.js and express

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

mongo-express

Web-based MongoDB admin interface written with Node.js and express

Features

Current features:

  • Supports multiple databases
  • Supports regular user authentication or admin authentication
  • Database blacklist/whitelist
  • View/add/rename/delete collections
  • View/add/update/delete documents
  • Supports BSON data types

Planned features:

  • Support for replica set connections
  • Web-based command-line interface
  • Site authentication
  • REST interface

Limitations

  • Can only edit documents which have a document._id property
  • Cannot edit document._id property (will be fixed soon)
  • Converts all documents from BSON to JSON when viewing (will be fixed soon)

Screenshots

Click here for more screenshots: http://imgur.com/a/OTZHe

These screenshots are from version 0.11.0.

Usage

To install:

npm install mongo-express

Or if you want to install a global copy:

npm install -g mongo-express

To configure:

Copy config.default.js into a new file called config.js.

Fill in your MongoDB connection details, and any other options you want to change.

To run:

node app

To use:

Visit http://localhost:8081 or whatever URL/port you entered into your config.

BSON Data Types

When adding/editing documents, you may want to use BSON data types.

Here is an example of how to use them:

{
  _id: ObjectID(), // or ObjectId()
  long: Long(3000), // or NumberLong()
  double: Double(4.4), // or NumberDouble()
  ts: Timestamp()
}

Writing this in the document editor will automatically convert the document to the BSON format.

See https://github.com/mongodb/node-mongodb-native for a full list of supported data types.

At the moment, viewing documents do not show the BSON types, they are only used when adding/editing documents.

License

MIT License

Copyright (c) 2012 Chun-hao Hu

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Something went wrong with that request. Please try again.