Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Update environment variables with Neo4j values

Attila Levente EGYEDI edited this page Apr 5, 2017 · 5 revisions

Access the Neo4j browser

Once the neo4j is installed and started, visit the Neo4j browser application using your browser:

http://localhost:7474/

Log in with the default credentials, which is usually neo4j/neo4j

Help - available commands

You can get a list of available commands by typing :help into the browser command line

Change neo4j password

Type :server change-password , and change the password into a safe one.

Get the Neo4j connection parameters

You will need to set two environment variables. These can be easily found in the above started Neo4j browser. Follow these steps:

  • Execute the query MATCH (n) RETURN n
  • Click the Code tab in the result panel
  • Copy and save the value of the Request->Authorization string. This will be the Neo4j auth string
  • Copy and save the value of the Response->Data->"commit". From this we can derive the Neo4j transaction REST endpoint URL

Modify the environment variables

Open your .bash_profile with your editor of choice

Set the two variables:

  • CEDAR_NEO4J_AUTH_STRING should be set to the exact auth string you just copied, including the "Basic" string as well
  • CEDAR_NEO4J_TRANSACTION_URL should be the URL copied above, but without the transaction id. Just delete the number before /commit/
Clone this wiki locally