This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Update environment variables with Neo4j values
Attila Levente EGYEDI edited this page Apr 5, 2017
·
5 revisions
Once the neo4j is installed and started, visit the Neo4j browser application using your browser:
Log in with the default credentials, which is usually neo4j/neo4j
You can get a list of available commands by typing :help
into the browser command line
Type :server change-password
, and change the password into a safe one.
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
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/