Skip to main content

Handle MongoDB with WebStorm in Windows















Normally MongoDB is handle by using Windows command line interface. But it is little bit difficult to deal with. Therefore instead of Windows CMD,   we can use WebStorm Terminal to handle the MongoDB commands and all the stuff.

First of all there should be two requirements to begin with this process.

  • MongoDB should be properly install to the computer and MongoDB bin folder path should be set as environment variable.
  • WebStorm should be completely install to your machine.(download link:- https://www.jetbrains.com/webstorm/download/#section=windows)

There are simple three steps to do .

  • install Mongo Explorer plugin to the Webstorme IDE

                 + Open the WebStorm IDE and create an empty project

                 + Go to Files >Settings>Browse repositories.



                 + Search for 'Mongo' and suggestion will be appear as 'mongo plugin'. install it and
                    restart the WebStorm IDE.

                + Press shift key twice(shift+shift). then you can see this kind of search option.


                    + Then search for 'Mongo Explorer'. and click on the suggestion and go to
                        mongo Settings.


                     + Then go to Other Service> Mongo Servers, and give the path to 'mongo.exe' and
                        click on '+' button.

         
                   

                   + Give 'localhost' as the Label  and click OK.


                   + Then click OK and APPLY in the Settings window.

  • Start MongoDB
                   + Open Windows CMD and type 'mongod.exe' and then mongodb will start.
                      (only if MongoDB bin folder path is set as environment variable.) 
              
  • Start MongoDB in WebStorm. 
                  + Right click on the localhost icon and click on 'Connect to this server'.



                   +Then you can edit MongoDB by using Terminal or Mongo shell.





like this you can handle the MongoDB by using the WebStorm IDE.


  • Note :-


If you need to get backup of a collection in MongoDB, please refer to this question in the stack over flow.

http://stackoverflow.com/questions/44054673/how-to-get-backup-of-collection-in-mongodb







Comments

Popular posts from this blog

Introduction to AngularJS for beginners.

AngularJS is a framework developed from the JavaScript for front-end developments of a web application. It allows us to create web application with dynamic behaviors. AngularJS follows MVC (Model View Controller) architecture and it has an amazing feature called 'two way data binding'. That means changers that are done to the HTML content will appear real-time to the script and changers that are done for the script will appear to the HTML content instantly. There are more reusable inbuilt components available with Angular and those components will give very attractive features to any web or mobile application. Because of its re-usability and easiness we can create any dynamic web application within few minutes. There are many versions available in Angular. Recently they released Angular 4.0 stable version to the community.  Angular 2.0 and 4.0 are little bit similar to each other. But Angular 1.0 is completely different with above versions. It is the oldest versi...

Robotic Process Automation

Introduction Robotic process automation is very important Technology in future world. This technology can be use to any kind of Business. By using the RPA, day to day repetitive business  tasks can be automated using software robots. Most of business use this technology because they can maintain good productivity and accuracy of their business process because of this. There are many tool available in the world to do the RPA. Among those tools Accello is very powerful automation tool implemented by VirtusaPolaris. By using this tool any kind of business process can be automated.Mainly it can do desktop automation and web automation using this tool. In addition to that various kind of automation are available in this tool.  This tool uses Java and JavaScript to handle the back-end of the application and AngularJS is used for the front-end.  OrientDB  is used as the database. It is powerful No-SQL graph database. Because of these new technologies many b...