Digital ocean is a cloud based server that makes the creation of mongoDB instances quite simple and today in our ongoing tutorial we will cover how to use HumongouS with Digital Ocean.
A MongoDB instance is simply a server on a machine which can host multiple MongoDB databases.
To get started using HumongouS with our Digital Ocean account, we are going to need to login to our account or create one here.
Once logged in, you will be redirected to your homepage where you will notice a create droplet button sitting somewhere in the middle of the page. Clicking on that button will redirect you to a new page where you can now proceed to specify the details of the instance you’d like to create.
Click the Create Droplet button when done and your droplet will be created in about a minute or so, mine took about 40s.
Access to your newly created server at this point is currently set to deny at this point because no SSH key was created but not to worry, just check your mail (the email used in logging in to D.O) and you should have received username and password credentials alongside server information from Digital Ocean.
On the droplet dashboard, click on console access and login with the access credentials received from Digital Ocean once the console opens.
For security reasons, you are required to change your password when you log in for the first time so choose a password that is very strong but still easy for you to remember. When logged in, open the MongoDB configuration file by typing:
Scroll down the console until you locate the line with bindIp and add your server IP at the end of that line.
The server IP address can be found at the bottom of the page, right below the console. So finally, the bindIp should be in the format:
bindIp = 127.0.0.1, your_server_ip
When done, press
ctrl X (cmd X on Mac) followed by Y to save and then press Enter. Restart the MongoDB server from the console by typing:
service mongod restart
Congratulations, you should be all set to go from here. Copy the connection string:
in our case it will be
mongodb://22.214.171.124/test. Paste it in the project creation form on HumongouS.io. Go ahead and enjoy the best of MongoDB through the best MongoDB GUI ever. If you encounter issues with any of the above steps, please email us on email@example.com, we will be more than happy to help.