14 C
Texas
angeloma
Senior Writer and partner

Install Mongoku on Ubuntu 20.04 / Debian 10 – Web Client for MongoDB

Hello, friends. If we say that MongoDB is one of the most important database managers, I don’t think we are exaggerating. But it is a good idea to have tools that allow us to manage it properly. So, in this post, you will learn how to install Mongoku on Ubuntu 20.04 / Debian 10.

What is Mongoku?

Mongoku is a client for MongoDB created with web technologies. Therefore from a comfortable web interface, we can manage and query data from a database.

Mongoku is simple and fast, so it is not a complete client but it is quite functional and easy to use. As it is OpenSource and free, you can use it in personal projects or for educational purposes without problems.

Built on TypeScript/Node.js/Angular it can be installed on any modern operating system. Besides this, it is quite fast doing the necessary tasks, so much so that it has been tested on a 1Tb cluster, and has support for both local and remote databases.

- Advertisement -

So if you are looking for simplicity to manage your data in MongoDB this application could be useful.

Install Mongoku on Ubuntu 20.04 / Debian 10

As it is built with web technology, the installation is very simple and easy to do. However, there are some previous steps to follow.

Install MongoDB on Ubuntu 20.04 / Debian 10

Mongoku can be used to manage data from a MongoDB database either locally or remotely. In this post, we consider that the most common use case for a developer is to have MongoDB installed on that same computer.

So, first, install MongoDB on Ubuntu 20.04 or Debian 10 with the post we have prepared for you.

After MongoDB is ready, you can continue.

Install NodeJS on Ubuntu 20.04 / Debian 10

Being built with NodeJS, we have to install this technology on our computer to enjoy Mongoku. In this post, we will install the latest version of the 14.x branch.

So, open a terminal and run the following commands to install the necessary packages:

sudo apt update
sudo apt install curl gnupg2

After that, add the official NodeJS repository for the 14.x branch.

curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -

And now you can install it by running the command:

sudo apt install nodejs

This way, NodeJS will be installed on your computer without any problems.

Install Mongoku on Ubuntu 20.04 / Debian 10

Now we will be able to operate without any problems. First, update NPM which is the package manager for NodeJS.

sudo npm install [email protected] -g

This is to avoid possible errors when installing Mongoku.

Now you can install by running the following command

sudo npm install -g mongoku
added 83 packages, and audited 84 packages in 7s

found 0 vulnerabilities

And to start it, just run the following command

mongoku start

You will get an output screen like the following:

  __  __                         _          
 |  \/  | ___  _ __   __ _  ___ | | ___   _ 
 | |\/| |/ _ \| '_ \ / _` |/ _ \| |/ / | | |
 | |  | | (_) | | | | (_| | (_) |   <| |_| |
 |_|  |_|\___/|_| |_|\__, |\___/|_|\_\\__,_|
                     |___/                  
[Mongoku] Starting...
(node:4883) [MONGODB DRIVER] Warning: Current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
(Use `node --trace-warnings ...` to show where the warning was created)
[localhost:27017] Connected to localhost:27017
[Mongoku] listening on port 3100
1.- Running Mongoku
1.- Running Mongoku

Indicating that you have to access via port 3100 on your PC from a web browser and you will see the following:

2.- Mongoku on Ubuntu 20.04 / Debian 10
2.- Mongoku on Ubuntu 20.04 / Debian 10

So, click on the host and start browsing and creating data.

Enjoy it.

Conclusion

In this post, you have met another tool to manage MongoDB that stands out for its simplicity and polished and easy-to-understand interface. With Mongoku you can quickly access the data and it is easy to install on Ubuntu 20.04 / Debian 10.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article