DEV Community

Cover image for An introduction to ArangoDB
Syam Sasidharan
Syam Sasidharan

Posted on

An introduction to ArangoDB

While I was working on a way finding solution, I had to search for a graph database. After some research I have found out few as below:

And the list goes on

As one of the best in the market, I have started with neo-4j and then I realised that if I wanna use it in a commercial project, I have to pay a huge license fee ๐Ÿ˜‘. In my opinion neo-4j is one of the best graph database with developer friendly tools and documentation. But the price was not something I could afford. Thus I continued my search and found ArangoDB ๐Ÿ˜„๐Ÿ•บ.

Before this project I never heard of this platform at all. But once started learning it was quite easy to set up and prove the basic concepts. Also price wise suitable for me too; its an open source apache 2.0 distribution.

I have learned a lot while working with ArangoDB, so I thought write a simple blog on this to help others who may have to use similar platforms in their projects.

Lets jump inโ€ฆ

What is ArangoDB?

Its an open source multi-model database for graph , document , key-value and search needs. In other words it has the features of Neo4J / Couch DB and Cassandra DB. Thats sounds something interesting, isnโ€™t it.

Which are the operating systems it supports?

Basically every where - Windows / Mac / Linux / Kubernetes & Docker. ๐Ÿ˜Ž

How about drivers for programming languages ?

Almost all the modern main stream languages - Java, JS, Go, Python, R , Rust & Elixir ๐Ÿค 

How to install?

I am using Mac, so I decided to install via Homebrew โค๏ธ and also installed the cli tools.

brew install arangodb

Thats it ๐Ÿคฉ you have got the arangodb on you mac if everything goes well.

I have also installed the cli tools to make it easier for me. This is not needed if you donโ€™t want this extra app on your machine.

Start the server

I have started the server using following command.

sudo brew services start arangodb

If you want to stop at any time, you may use the following:

sudo brew services stop arangodb

Lets play via web user interface

Now you have started the arangodb server, we can start accessing it via either arango web user interface or arango shell. Here I am gonna show how to use the arango web interface as its more visual. ๐Ÿค“

Open your favourite browser and type in the following url

http://localhost:8529/

Boom!๐Ÿค˜

Web interface landing screen
Initially there wonโ€™t be any password for the โ€˜rootโ€™ user, so you can login first with โ€˜rootโ€™ as username and empty password. If you face any issue, you can reset the password following these steps here.

Then you will be prompted to select the database.

Select database screen

Now you will be taken to the dashboard screen.

Dashboard

Sweet!!! ๐Ÿ’ช๐Ÿ’ช๐Ÿ’ช

Finally you have setup the arangodb on your machine.

For more information click here.

Hope it useful for someone ๐Ÿ˜ƒ

I will write another tutorial on some practical exercises using arangodb and shortest path finding solution with nodejs.

Till then see ya! ๐Ÿค˜

Top comments (0)