=========
MongoBrowser is a web-based MongoDB management tool.
- Node.js
- npm(JavaScript package manager)
- Grunt
- npm install -g grunt-cli
- Bower
- npm install -g bower
-
Download MongoBrowser
-
Install modules
$ cd MongoBrowser
$ npm install
$ bower install
$ grunt build
- 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'
}
}
-----
$ cd MongoBrowser
$ node ./bin/www
or
$ pm2 start app.json