Graph is everywhere. We are surrounded by different types of graphs starting from social media, banking application, financial applications and lots more. e.g. In LinkedIn, we used to get a connection tree which shows us how we know the other people in the network, that’s nothing but an awesome application of graph database.

Today let’s try to build our first graph application using Neo4J graph database. To start with let’s assume we have Ubuntu 18.04 LTS 64 -bit installed on our system and we would like to install the graph database on top of it.

$ sudo su
$ wget -O - https://debian.neo4j.org/neotechnology.gpg.key | apt-key add -
$ echo 'deb http://debian.neo4j.org/repo stable/' > /etc/apt/sources.list.d/neo4j.list
$ apt-get update
$ apt-get install neo4j
$ service neo4j start

Now we should  be able to see the neo4j console over in the browser as follows: http://localhost:7474/browser/

Username: neo4j
Password: neo4j

Neo4J Console

Please note, in some installations we have noticed that default Username & Password doesn’t work properly. So we have to use the following patch in order to make it work.

$ sudo su
$ rm -f /var/lib/neo4j/data/dbms/auth
$ neo4j-admin set-initial-password "neo4j"
$ service neo4j restart

Once the above steps are done, you should be able to login with the above-mentioned credentials and see the screen as below.

Neo4J Console