UNPKG

4.42 kBMarkdownView Raw
1# adminMongo
2
3adminMongo is a Web based user interface (GUI) to handle all your MongoDB connections/databases needs. adminMongo is fully responsive and should work on a range of devices.
4
5> adminMongo connection information (including username/password) is stored unencrypted in a config file, it is not recommended to run this application on a production or public facing server without proper security considerations.
6
7## Installation
8
91. Clone Repository: `git clone https://github.com/mrvautin/adminMongo.git && cd adminMongo`
102. Install dependencies: `npm install`
113. Start application: `npm start`
124. Visit [http://127.0.0.1:1234](http://127.0.0.1:1234) in your browser
13
14#### Configuration
15
16adminMongo will listen on host: `localhost` and port: `1234` by default. This can be overwritten by adding a config file in `/config/app.json` in the following format:
17```
18{
19 "app": {
20 "host": "10.0.0.1",
21 "port": 4321
22 }
23}
24```
25
26## Usage
27
28##### Create a connection
29
30After visiting [http://127.0.0.1:1234](http://127.0.0.1:1234) you will be presented with a connection screen. You need to give your connection a unique name as a reference when using adminMongo and a MongoDB formatted connection string. The format of a MongoDB connection string can form: `mongodb://<user>:<password>@127.0.0.1:<port>/<db>` where specifying to the `<db>` level is optional. For more information on MongoDB connection strings, see the [official MongoDB documentation](http://docs.mongodb.org/manual/reference/connection-string/).
31
32Note: The connection can be either local or remote hosted on VPS or MongoDB service such as MongoLab.
33
34![adminMongo connections screen](https://raw.githubusercontent.com/mrvautin/mrvautin.github.io/master/images/adminMongo/adminMongo_connections.png "adminMongo connections screen")
35*The Connection setup screen*
36
37##### Connection/Database admin
38
39After opening your newly created connection, you are able to see all database objects associated with your connection. Here you can create/delete collections, create/delete users and see various stats for your database.
40
41![adminMongo database screen](https://raw.githubusercontent.com/mrvautin/mrvautin.github.io/master/images/adminMongo/adminMongo_dbview.png "adminMongo database screen")
42*The connections/database screen*
43
44##### Collections
45
46After selecting your collection from the "Database Objects" menu, you will be presented with the collections screen. Here you can see documents in pagination form, create new documents, search documents, delete, edit documents and view/add indexes to your collection.
47
48![adminMongo collections screen](https://raw.githubusercontent.com/mrvautin/mrvautin.github.io/master/images/adminMongo/adminMongo_collectionview.png "adminMongo collections screen")
49*The collections screen*
50
51##### Searching documents
52
53You can search documents using the `Search documents` button on the collections screen. You will need to enter the key (field name) and value. Eg: key = "_id" and value = "569ff81e0077663d78a114ce".
54
55> You can clear your search by clicking the `Reset` button on the collections screen.
56
57![adminMongo search documents](https://raw.githubusercontent.com/mrvautin/mrvautin.github.io/master/images/adminMongo/adminMongo_searchdocuments.png "adminMongo search documents")
58*The collections screen*
59
60##### Documents
61
62Adding and editing documents is done using a JSON syntax highlighting control.
63
64![adminMongo documents](https://raw.githubusercontent.com/mrvautin/mrvautin.github.io/master/images/adminMongo/adminMongo_docedit.png "adminMongo documents")
65*Editing a document*
66
67##### Indexes
68
69Indexes can be added from the collection screen. Please see the [official MongoDB documentation](https://docs.mongodb.org/manual/indexes/) on adding indexes.
70
71![adminMongo documents](https://raw.githubusercontent.com/mrvautin/mrvautin.github.io/master/images/adminMongo/adminMongo_manageindexes.png "adminMongo indexes")
72*Viewing/Adding indexes*
73
74## Contributing
75
761. Fork it!
772. Create your feature branch: `git checkout -b my-new-feature`
783. Commit your changes: `git commit -am 'Add some feature'`
794. Push to the branch: `git push origin my-new-feature`
805. Submit a pull request :D
81
82## Future plans
83
84Please make any suggestions.
85
86## License
87
88[The MIT License](https://github.com/mrvautin/adminMongo/tree/master/LICENSE)