{"id":19233077,"url":"https://github.com/reflexdemon/node-mongoviewer","last_synced_at":"2026-06-15T04:32:20.059Z","repository":{"id":21691413,"uuid":"25012718","full_name":"reflexdemon/node-mongoviewer","owner":"reflexdemon","description":"This project was mainly developed to learn nodejs and mongo db.","archived":false,"fork":false,"pushed_at":"2017-07-29T14:04:01.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-05T00:28:30.939Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reflexdemon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-09T23:30:03.000Z","updated_at":"2014-10-10T00:58:09.000Z","dependencies_parsed_at":"2022-08-18T06:22:01.667Z","dependency_job_id":null,"html_url":"https://github.com/reflexdemon/node-mongoviewer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reflexdemon%2Fnode-mongoviewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reflexdemon%2Fnode-mongoviewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reflexdemon%2Fnode-mongoviewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reflexdemon%2Fnode-mongoviewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reflexdemon","download_url":"https://codeload.github.com/reflexdemon/node-mongoviewer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240310872,"owners_count":19781341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T16:08:48.575Z","updated_at":"2026-06-15T04:32:15.028Z","avatar_url":"https://github.com/reflexdemon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"node-mongoviewer\n================\n\nThis project was mainly developed to learn nodejs and mongo db.\n\n## Pre-reqs\n\n1. Install [git][1]. Command line tool is strongly recommended.\n2. Install [node.js][2] \n3. Make sure `node` and `npm` are available on your command line.\n\n\n## Setup\n\nPlease clone the project on to your local\n\n```\n$ git clone git@github.com:reflexdemon/node-mongoviewer.git\n$ cd node-mongoviewer\n$ npm install\n```\n##Run\n```\nnode app.js config.json db1 [limit]\n```\n* `app.js` : This is the main app to run\n* `config.json` : See below for the configuration; see below for sample.\n* `db1` : This the database that you would like to connect on the configuration\n* `limit` : Optional. Specify any values for the queries to limit resultset. Defaulted to `50`.\n\n\n###Sample `config.json`\n```json\n{\n    \"name\": \"MongoDB\",\n    \"mongoHost\": \"localhost\",\n    \"mongoPort\": 27017,\n    \"db\": [ \n        {\n            \"name\": \"db1\"\n        },\n        {\n            \"name\": \"db2\",\n            \"user\": \"user\",\n            \"pass\": \"password\"\n        }\n    ]\n}\n```\n###Usecases\n\n* Open browser `http://localhost:3000` to view the `collections` in the DB.\n####Here is a sample output\n___\n\u003ctable\u003e\n\u003ctr\u003e\u003cth\u003ename\u003c/th\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003efoo\u003c/td\u003e\u003c/tr\u003e\n\u003c/table\u003e\n___\n\n* Open url `http://localhost:3000/foo` where `foo` is the name of `collection`\n####Here is a sample output\n___\n#foo\n| _id        | foo           |\n| ------------- |:-------------:|\n| 8721a09830192b081203c03f      | bar |\n| 19283021f029830d238b3912      | random |\n\n___\n\n* Open url `http://localhost:3000/foo/8721a09830192b081203c03f` where `foo` is the name of `collection` and id is the unique identifier.\nMongo query\n```\n\tdb.foo.find({\"_id\" : ObjectID(id));\n```\n####Here is a sample output\n___\n```json\n{\"_id\":\"8721a09830192b081203c03f\",\"foo\":\"bar\"}\n```\n___\n* Open url `http://localhost:3000/foo/foo/bar` where `foo` is the field that is used for filter with value `bar`\nMongo Query\n```mongo\n\tdb.foo.find({\"foo\" : \"bar\");\n```\n####Here is a sample output\n___\n```json\n{\"objects\":{\"_id\":\"8721a09830192b081203c03f\",\"foo\":\"bar\"},\"collection\":\"foo\"}\n```\n___\n\n\n\n## License\n\n### Code\n\nMIT License: http://adampritchard.mit-license.org/ or see [the `LICENSE` file](https://github.com/reflexdemon/node-mongoviewer/blob/master/LICENSE).\n\n[1]: https://help.github.com/articles/set-up-git 'git setup'\n[2]: http://nodejs.org/ 'node.js'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freflexdemon%2Fnode-mongoviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freflexdemon%2Fnode-mongoviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freflexdemon%2Fnode-mongoviewer/lists"}