Skip to content

Commit

Permalink
Added CHANGELOG, Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
semu committed Sep 27, 2011
1 parent 53d3b07 commit 9729741
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 17 deletions.
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
# Changelog
## 0.2.2 (current beta)

* new feature: sub document display
* enhancement: array display
* new feature: inline edit for basic properties (tested with Google Chrome)
* upstream: includes [connect-basic-auth](https://github.com/semu/connect-basic-auth) with custom bugfix

## 0.2.1 (2011-07-27)

* bugfix: handling for native mongodb driver

## 0.2.0 (2011-07-25)

* new feature: `mongoclikker` displays mongodb data
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
# mongoclikker

[MongoDB](http://mongodb.org) viewer written in [Node](http://nodejs.org). Just clone, run `npm install express mongodb` and fire up [mongoclikker](https://github.com/semu/mongoclikker) with
A clean [MongoDB](http://mongodb.org) viewer and basic editor written in [Node](http://nodejs.org). Just clone, run `npm install` and fire up [mongoclikker](https://github.com/semu/mongoclikker) with

[sudo] node app.js

Open [http://localhost:2002/view/DATABASE](http://localhost:2002/view/DATABASE) in your web borwser and your good to go…
Open [http://HOSTNAME:2002/view/DATABASE](http://HOSTNAME:2002/view/DATABASE) in your web browser and your good to go…

![mongoclikker](http://img.hazelco.de/mongoclikker-20110728-192528.jpg)

## Security

Per default mongoclikker is protected with a basic HTTP authentication, you should change the default password set in `app.js`:

app.js:4 protectWith('mongo', 'clikker')

## configure

See `app.js` for setting a default database and mongodb connection. Default settings should work fine for getting connected to your local mongodb server, but they enable **public web access to your databases** while mongoclikker is running!
See `app.js` for setting a default database and mongodb connection. Default settings should work fine for getting connected to your local mongodb server. [mongoclikker](https://github.com/semu/mongoclikker) is protected with a simple HTTP access control, read and write access cannot be done without propper authentication.

var mongoclikker = require('./mongoclikker.js');

mongoclikker/*.setHost('localhost')
.andPort(27017)
.forDatabase('mongoclikker')
*/.andListenOn(2002);
require('./mongoclikker.js')/*.setHost('localhost')
.andPort(27017)
.forDatabase('mongoclikker') */
.protectWith('mongo', 'clikker') /* Password for HTTP Authorization */
.listenOn(2002);

8 changes: 3 additions & 5 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
var mongoclikker = require('./mongoclikker.js');

mongoclikker/*.setHost('localhost')
require('./mongoclikker.js')/*.setHost('localhost')
.andPort(27017)
.forDatabase('mongoclikker') */
.protectWith('mongo', '') /* Set password for HTTP Access Authorization! Not MongoDB password! */
.andListenOn(2002);
.protectWith('mongo', 'clikker') /* Password for HTTP Authorization! */
.listenOn(2002);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"database",
"mongo"
],
"version": "0.2.1",
"version": "0.2.2",
"author": "Sebastian Müller <code@semu.mp> (http://semu.mp)",
"homepage": "https://github.com/semu/mongoclikker",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function hasClicked(newThis) {
$(curThis).html(newValue);
$(curThis).removeClass('isActive');

$.post("http://hazelno.de:2002/update/" + $(curThis).attr('id'), { data: newValue},
$.post("/update/" + $(curThis).attr('id'), { data: newValue},
function(data) {

}
Expand Down

0 comments on commit 9729741

Please sign in to comment.