Skip to content

RenmanKang/MongoBrowser

Repository files navigation

MongoBrowser

=========

1. Introduction

MongoBrowser is a web-based MongoDB management tool.

2. Prerequisite

3. Installation

$ cd MongoBrowser
$ npm install
$ bower install
$ grunt build

4. Setting up

  • Change the port, hosts_file, logger filename path, and other settings.
$ cd MongoBrowser/conf
$ vi config.js
-----
	port: 5056,
	locales: ['en', 'ko'],
	cookie: {
		path : '/',
		httpOnly : true,
		maxAge: 1000 * 60 * 60 * 24
	},
	static: {
		maxAge: 1000 * 60 * 60 * 24
	},
	hosts_file: __dirname + '/../conf/hosts.json',
	connect_options: { // MongoDB connect options
		auto_reconnect: true,
		socketOptions: {connectTimeoutMS: 1000},
		poolSize: 1
	},
	logger: {
		access: {
			category: 'access',
			type: 'dateFile',
			filename: __dirname+'/../logs/mongobrowser-access.log',
			pattern: '-yyyy-MM-dd',
			level: 'DEBUG'
		},
		app: {
			category: 'app',
			type: 'dateFile',
			filename: __dirname+'/../logs/mongobrowser-app.log',
			pattern: '-yyyy-MM-dd',
			level: 'DEBUG'
		}
	}
-----

5. Running It

$ cd MongoBrowser
$ node ./bin/www
or
$ pm2 start app.json

6. Screenshot

Main page


7. Reference