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
Boom!๐ค
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.
Now you will be taken to the dashboard screen.
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)