/mongo_browser

Simple mongodb database browser

Primary LanguageJavaScriptMIT LicenseMIT

MongoBrowser

Build status Dependency Status Code Climate

Simple but powerful tool for managing mongodb databases

Install the gem:

gem install mongo_browser

Usage

Run the application

mongo_browser

Application will be available by default at http://localhost:5678 In order to run it on custom port number pass the --port option with selected port.

Running specs

The main goal of this project is to achieve the highest testability with 100% code coverage.

Running backend specs

All specs are running against isolated mongodb instance and the primary local database won't be affected. See https://github.com/lucassus/mongo_browser/blob/master/spec/support/mongod.rb helper class for more details.

In order to execute rspec scenarios for backend just execute:

rspec spec

Running frontend specs

Inside the console

  • ./script/ci_javascript will execute jasmine specs
  • ./script/ci_e2e will execute angularjs e2e scenarios

Inside the browser

Run thin in the test environment:

 thin start -R config-e2e.ru -e test -p 3001

Navigate to the one of the following url:

Continuous integration

All specs (backend + frontend) could be executed with the following command ./script/ci_all

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request