Open In App

How to Install and Setup MongoDB Plugin on IntelliJ?

Improve
Improve
Like Article
Like
Save
Share
Report

MongoDB is an open-source platform for the usage of databases. It is the software that allows playing with databases. Like MySQL, MongoDB is also a famous software in this field. MongoDB is document-oriented and a no SQL database. It helps you to make an interactive database. For installing MongoDB as a plugin on IntelliJ, the user needs first to install both MongoDB & IntelliJ on the machine. Also, the user needs to configure the MongoDB server in the machine beforehand. In this article, we will learn how to install and set up MongoDB plugins on IntelliJ. 

MongoDB Plugin on IntelliJ

MongoDB can store the data in databases. But they are not the traditional tables that users can often see in the SQL. Also, it can store a large number of data in a database. It helps to make changes there. There is the cloud version of MongoDB which saves the memory spaces in the machine. Some features of MongoDB are: 

  1. MongoDB is widely used for its performance. The performance of MongoDB is much more than any other application.
  2. MongoDB is a schema-less database. So it can hold many documents in the same database.
  3. MongoDB is well known for its scalability. MongoDB provides horizontal scalability.

Installation Of MongoDB Plugin On IntelliJ

Step 1: Open the IntelliJ platform. The user needs to click on Create New Project. This will help make a new IntelliJ project for the MongoDB purpose.

open intelliJ and create a project

 

Step 2: Then a new window will open in front of us. Click on the Empty Project. The user has to click on the Next button.

click on empty project in intellij project

 

Step 3: In the next window, the user has to provide the name of the empty project. Users can provide any name there. But the installation location can’t be changed in it. Then the user has to click on Finish.

write project name and project location in intellij

 

Step 4: A new project window will open. In the newly opened window, there will be a file section at the top of the left-hand side of the screen, click on it. Click on the Settings option. 

go to settings in intelliJ

 

Step 5: Then another new window will open. Click on the Plugin option. Click on the Browse Repositories button. 

click  on plugins in intelliJ

 

Step 6: Search for Mongo in the search box. Then the plugin for MongoDB will be available. Click on the Install button. 

type mongo and install in the system

 

Step 7: The installation of the MongoDB plugin will start. It will take a little time to complete.

search mongo in intellij

 

Step 8: Click on the Restart IntelliJ IDEA button. Restart IntelliJ to save the changes. Hence, the installed MongoDB plugin will be available there.

restart intelliJ idea button in intellij

 

 Configuration Of MongoDB Plugin On IntelliJ:

Step 1: After successfully restarting the IntelliJ platform, the user needs to configure the MongoDB plugin there. Click on the search icon on the right-hand side of the screen. 

configure mongodb plugin click on the search box.

 

Step 2: After clicking on it, a search bar will open in front of the user. Search for Mongo. An option name Mongo Explorer will be visible, click on it. 

search mongo

 

Step 3: After clicking on it, the user can able to see a sidebar on the right-hand side of the screen. This is known as the MongoDB Explorer Panel. There the server will be present. The server is not configured yet, so nothing will be visible there. Click on the particular icon, it is the settings of the MongoDB Explorer Panel.

mongodb  explorer panel is open in intellij

 

Step 4: Then a new window will open. In this step, there are many substeps. Those should follow with concern. Any mistake in this part will not create the server in IntelliJ.

  1. First, in the open window, the user has to click on the Other Settings. If the user expands the settings, the Mongo Server option is present. Click on it.
  2. After clicking on it, a new field has to be filled up by the user. The user needs to provide the path of their MongoDB executable file. The file folder should be in the bin folder of the installed MongoDB folder in the C drive of the machine.
  3. Then, the user needs to click on the Test button. This button is available beside the field where the user needs to provide the path. After clicking on the button, if it shows a green tick sign, means the path is correctly provided.
  4. After clicking on the Test button, some details will be filled up automatically. If the user correctly configured the MongoDB server when installing MongoDB, then there will be no issues.
  5. At last, the user needs to click on Apply. Click the Ok button.
open settings select mongo server, go to desired c drive folder test the connection and click on apply and ok

 

Step 5: Then it will return back to the window where the MongoDB Explorer Panel was present. Earlier it was empty. But now, there is a server present. Users can see the present server there. Hence, we have successfully completed the configuration process.

mongodb is imbedded as a plugin intellij

 



Last Updated : 07 Oct, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads