gimmi / mongobrowser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MongoBrowser

A minimal Web UI to query MongoDB data

Screenshot

Screenshot

Installation

  • If not already installed, install NodeJS
  • Download the latest version of MongoBrowser HERE
  • Unzip and run start.cmd (windows only)

Query syntax

MongoBrowser query definition is a Javascript object literal in this form:

property1: 'value1',
property2: true,
property3: { other: 'value' }

The curently supported properties are:

Sample queries

url: 'mongodb://localhost:27017/default',
coll: 'zips',
filter: {},
fields: [
   'fieldName',
   { header: 'City', dataIndex: 'city' },
   { header: 'Zip code', dataIndex: 'zip', flex: 1 }
],
sort: ['zip', 'city']
url: 'mongodb://username:password@server1:27017,server2:27017,server3:27017/database?replicaSet=ReplicaSetName',
coll: 'logs',
filter: { application: 'AppName', environment: 'dev' },
fields: [
   { header: 'Date/Time', dataIndex: 'timestamp', xtype:'datecolumn', format: 'Y-m-d H:i:s:u', width: 150 },
   { header: 'Level', dataIndex: 'level', width: 50 },
   { header: 'TID', dataIndex: 'thread', width: 30 },
   { header: 'Logger', dataIndex: 'logger' },
   { header: 'Message', dataIndex: 'message', flex: 1 },
   { header: 'Exception', dataIndex: 'exception' }
],
sort: { timestamp: -1 }

Credits/License

See license file

About

License:Other


Languages

Language:JavaScript 100.0%