MongoFe

This is a simple Sinatra based web front-end that can be used for experimenting and learning MongoDB. The MongoFe gem can also be used for simple administrative tasks, managing collections and document basic operations such as: create new documents, delete existing ones, search by various criteria and document indexing.

Installation

$ gem install mongo_fe

Credentials

Create a file in your home directory called: .mongo_fe

In this file add the following:

uri: mongodb://localhost:27017

Examples:

uri: mongodb://nemo:[email protected]:33897/Reef

Usage

Verify first that you have access to a MongoDB instance. See the install guides, if need be. I used the Homebrew package manager to install mongodb. If you have Homebrew, run the following commands:

$ brew update
$ brew install mongodb

To start the MongoFe web server:

$ mongofe

or you can start the web server pointing it to a remote MongoDB url, example:

$ mongofe -C mongodb://sheppard:[email protected]:33897/datamelee
$ mongofe -C mongodb://Genetically:Enhanced@"spiritual_successor.mongohq.com:10075/BioShock

(fictive links, real syntax)

MongoFe works well with remote MongoDB instances, see: mongolab.com or mongohq.com, for example.

To stop the server:

$ mongofe -K

Screenshots

In the mean time, I'd love for you to check out these screenshots to get a feel for MongoFe and see some of the administrative interfaces designed to make your day to day tasks easier.

database info Database info

documents query and management Documents view

index management Indexes view

Have fun!

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Add some tests and please make sure they pass
  • Commit your changes (git commit -am 'Added some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

License

MIT License