Quantcast
Channel: MongoDB – JS Tricks
Viewing all articles
Browse latest Browse all 9

How to install Genghis: A MongoDB GUI Tool

$
0
0

Genghis is a MongoDB administration application. In this post you will learn how to Install Genghis.

How to install Genghis

To install Genghis as a Ruby gem use this command:

gem install genghisapp

More ways to run Genghis

Standalone

If you have already installed Genghis application as a Ruby gem then you can easily run Genghis standalone:

$ genghisapp

When it has started running, you can use genghisapp --kill for stopping it.

Using Ruby Command

If you don’t want to use the gem then you can still run genghis.rb standalone with ruby command:

ruby genghis.rb

genghis.php can be run with php command as a standalone server:

php -S localhost:8000 genghis.php

In your LAMP stack

Simply drop genghis.php in a web-accessible directory on a LAMP server. Don’t forget .htaccess for pretty URLs!

Run as an existing Rack app

For a super basic Rack config, use a config.ru file like this:

require 'genghis'

run Genghis::Server

If you want to load Genghis on a subpath, possibly alongside other apps, it’s easy to do with Rack’s URLMap:
require 'genghis'

run Rack::URLMap.new \
  '/'        => Your::App.new,
  '/genghis' => Genghis::Server.new

With Rails 3

You can also mount Genghis on a subpath in your existing Ruby on Rails 3 application by adding require 'genghis' to the top of your routes file (or in an initializer) and then adding it to routes.rb:

mount Genghis::Server.new, :at => '/genghis'

Genghis Dependencies

PHP

You will need at least PHP 5.3 and the PECL MongoDB driver.

Ruby

Genghis requires Ruby 1.8 or higher.

The post How to install Genghis: A MongoDB GUI Tool appeared first on JS Tricks.


Viewing all articles
Browse latest Browse all 9

Latest Images

Trending Articles





Latest Images