Skip to content

RRZE-PP/mongobrowser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mongobrowser

The mongobrowser is a purely html and javascript based clone of robomongo bringing its core features to the web. It requires a backend to send requests to. Two sample backends are included in this repo and you might wanna take a look at Graibomongo, our grails implementation of a more sophisticated backend.

It features a port of large parts of the C++-Code of the NodeJS mongo-shell therefore allowing you to do almost anything in its shell you can do in the mongo-shell.

Demo

Recorded demo

Development

  1. Start a backend server (it is recommended to start an instance of Graibomongo) and a mongod instance
  2. Build the MongoNS namespace (see src/mongo-shell/README.md) make -C src/mongo-shell/
  3. Open the src/mongobrowser.html in a browser instance with disabled web security (allowing XHR-Requests from a file://-url) (eg chromium --user-data-dir=/tmp/ --disable-web-security src/mongobrowser.html)
  4. Set the MongoNS backend URLs to point to your backend via your browsers' js command interface:
     	"http://localhost:8080/shell/requestMore",
     	"http://localhost:8080/shell/runCommand")
    

If you consider using another backend (e.g. the mongodb REST api) you can do so by overwriting the Connection Namespace in src/mongo-shell/port_connection.js

Deploying

Run make to build and minify a compact version of the code, a minified version will be put to bin/

About

A robomongo clone in the browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published