5 Quick Steps to Getting Started with Neo4j 2.2.3 on Windows OS

Today I’m going to walk you through how to set up Neo4j on a Windows based machine as well as how to switch databases using the launcher application.
Step 1:
Navigate your browser to neo4j.com/download. Download your target edition. If planning to deploy Neo4j into production, download Neo4j-Enterprise. If still learning Neo4j or just building a personal application, Neo4j-Community will be more than sufficient.
Step 2:
Go ahead run the installer. I chose to install it onto my desktop. Remember the path in which you’ve decided to store it.
Step 3:
Start Neo4j. Navigate into the directory that you’ve installed Neo4j into. The Neo4j launcher application is stored in: neo4j-community/bin/neo4j-community.exe 
Let’s take a quick tour of the Neo4j Launcher:
You can point the launcher to any .db directory that you wish. This is a great method for storing multiple Neo4j projects on the same machine. Here I’ve pointed the Launcher to an empty directory called called “New-Neo4j-Project.db”. The only requirement is that the directory has a “.db” extension. Neo4j will automatically create the necessary subfolders within the .db folder if they don’t already exist.
Click Browse to select a Graph.db folder (you can skip this step and get started with the default.graphdb.db directory)
The launcher allows you to modify Neo4j settings and server properties
Inside the options tab you can bring up the command prompt where you can launch the Neo4j Shell. Simply enter Neo4jShell.bat in the command line to start the shell.
The Neo4j Shell
Neo4j Options:
Let’s talk about the other properties we can modify from the launcher. Under the Database Tuning tab we can modify our tuning configurations as well as our cache sizing.
Step 4: While we have this open, let’s go ahead and allocate a reasonable amount of memory to our page cache. I try to allocate at least as much to the page cache as my database is on disk. For example if my graph.db folder is 2GB, I should allocate 2g to the page cache.
Step 4a: If using a graph.db folder from an earlier version of Neo4j you’ll need to uncomment the line (delete the #).
Step 5: Under the Java VM Tuning tab we can edit how much memory is allocated to our VM.
If you accidentally allocate too much memory to your VM, you’ll have to either manually navigate to the neo4j-community.vmoptions file and reduce the memory allocation or reinstall Neo4j. For my project today, I’m going to allocate 4GB or 4096MB.
Optional Steps: Under the Server Config tab we change what port Neo4j is bound to (default is 7474) as well as our database authentication settings. Since I’m just toying around, I’m going to turn of Neo4j’s authentication layer.
Alright! Now that we’ve got everything tuned up and ready to go. Let’s go back to the launcher home and start the our Neo4j instance and uncover the value in our data-relationships.

3 Responses to “5 Quick Steps to Getting Started with Neo4j 2.2.3 on Windows OS

Trackbacks & Pings

Leave a Reply

Your email address will not be published.