Node Mongo Admin
A simple web application to visualize mongo data inspired by PHPMyAdmin
Install
1. Clone
the repo
2. Copy the file
example-config.js to
config.js and edit what you want
3. Start with
node index or, if you have
pm2,
npm start
Features
* Multiple connections
* Multiple users and permissions
* Table-like display
* HTTPs and BasicAuth
* Relaxed query language (accepts not only JSON, but also plain JS)
* Right click to quick search (even between databases)
* Support for distinct and aggregate query
* Export to HTML
* API to prompt users for one or many ids (see bellow)
Example
!
screen shot
Credits
Icons by
FamFamFam
Prompt API
Another window can open a node-mongo-admin's window to prompt the user for one or many ids.
Example:
``
js
var promptWindow = window.open(baseUrl + '?promptOne')
window.onmessage = function (event) {
if (event.source === promptWindow) {
console.log(event.data)
}
}
`
Use browser APIs (like window.open()
or