Setting Up Your Development Environment

About this module

As a developer, you will create Neo4j Databases, add and update data in them, and query the data. When you learn to use Neo4j as a developer, you have three options⎼ Neo4j Desktop, Neo4j Aura, or Neo4j Sandbox. In this module you will learn how to use each of these development environments and select the option that is best for your needs while you are learning about Neo4j.

Many graph-enabled applications have been developed and deployed using Neo4j’s Community Edition (free). If your enterprise requires production features such as failover, clustering, monitoring, advanced access control, secure routing, etc. you will use Neo4j’s Enterprise Edition, or you can use Neo4j Aura which is the cloud instance of a Neo4j Enterprise Edition Database.

At the end of this module, you will be able to:

  • Determine the development environment that is best for you:

    • Install and start using the Neo4j Desktop.

    • Create a Neo4j Database instance in the cloud with Neo4j Aura.

    • Create a Neo4j Sandbox for learning Neo4j.

  • Start using Neo4j Browser.

Neo4j Desktop

Neo4jDesktop

The Neo4j Desktop includes the Neo4j Database server which has a graph engine and kernel so that Cypher statements can be executed to access a database on your system. It includes an application called Neo4j Browser. Neo4j Browser enables you to access a Neo4j database using Cypher. You can also call built-in procedures that communicate with the database server. There are a number of additional libraries and drivers for accessing the Neo4j database from Cypher or from another programming language that you can install in your development environment. If you are looking to use your system for application development and you want to be able to create multiple Neo4j databases on your machine, consider downloading the Neo4j Desktop (free download). The Neo4j Desktop runs on OS X, Linux, and Windows.

Neo4j Aura

Neo4j Aura

Neo4j Aura enables you to create a Neo4j Database instance in the Cloud using a monthly subscription model. The amount per month depends on the amount of memory required for the database. This frees you from needing to install Neo4j on your system. Once you create a Neo4j Database at the Neo4j Aura site, it will be managed by Neo4j. Backups are done automatically for you and the database is available 24X7. In addition, the Neo4j will ensure that the database instance is always up-to-date with the latest version of Neo4j.

Neo4j Sandbox

Neo4jSandbox

The Neo4j Sandbox is another way that you can begin development with Neo4j. It is a temporary, cloud-based instance of a Neo4j Server with its associated graph that you can access from any Web browser. The database in a Sandbox may be blank or it may be pre-populated. It is started automatically for you when you create the Sandbox.

By default, the Neo4j Sandbox is available for three days, but you can extend it for up to 10 days. If you do not want to install Neo4j Desktop on your system, consider creating a Neo4j Sandbox. You must make sure that you extend your lease of the Sandbox, otherwise you will lose your graph and any saved Cypher scripts you have created in the Sandbox. However, you can use Neo4j Browser Sync to save Cypher scripts from your Sandbox. We recommend you use the Neo4j Desktop or Neo4j Aura for a real development project. The Sandbox is intended as a temporary environment or for learning about the features of Neo4j as well as specific graph use-cases.

Steps for setting up your development environment for this training

If you are using Neo4j Desktop:

  1. Install Neo4j Desktop.

  2. In a project, create a local graph (database).

  3. Start the database.

  4. Click the Neo4j Browser application.

If you are using Neo4j Aura:

  1. Create a 1G Neo4j Database in your Neo4j Aura account that is already started for you.

  2. Click the link to access Neo4j Browser.

If you are using Neo4j Sandbox:

  1. Create a Neo4j Sandbox (blank Sandbox). The Sandbox has a database that is already started for you.

  2. Click the link to access Neo4j Browser.

Guided Exercise: Getting Started with Neo4j Desktop

In order to perform the hands-on exercises for this training, you must install Neo4j Desktop, create a Database in Neo4j Aura, or create a Neo4j Sandbox.

If you want to download and install Neo4j Desktop on your system, follow along with one of these videos to download, install and get started using Neo4j Desktop. If you will be using Neo4j Desktop in your development environment, you can follow the steps in the video to create a TestMovies project with its corresponding Movies database.

If using OS X:

If using Linux:

If using Windows:

Guided Exercise: Creating a Database in Neo4j Aura

In order to perform the hands-on exercises for this training, you must install Neo4j Desktop, create a Database in Neo4j Aura, or create a Neo4j Sandbox.

If you want to create and use a Neo4j Database in the cloud using a Neo4j Aura, follow along with this video to create a Neo4j Database with Neo4j Aura for training purposes. For this course, select the smallest database in Neo4j Aura which is 1G.

Guided Exercise: Creating a Neo4j Sandbox

In order to perform the hands-on exercises for this training, you must install Neo4j Desktop, create a Database in Neo4j Aura, or create a Neo4j Sandbox.

If you want to run the Neo4j Database server in the cloud using a Neo4j Sandbox, follow along with this video to create a Neo4j Sandbox for training purposes. For this course, select the Blank Sandbox.

Using Neo4j Browser

Neo4j Browser is a tool that enables you to access a Neo4j Database by executing Cypher statements to create or update data in the graph and to query the graph to return data. The data returned is typically visualized as nodes and relationships in a graph, but can also be displayed as tables. In addition to executing Cypher statements, you can execute a number of system calls that are related to the database being accessed by the Browser. For example, you can retrieve the list of queries that are currently running in the server.

There are two ways that you can use Neo4j Browser functionality:

  • Open the Neo4j Browser application from Neo4j Desktop (database is local)

  • Use the Neo4j Browser Web interface by specifying a URL in a Web browser using port 7474 (database is local, in Neo4j Aura, or in Neo4j Sandbox)

Neo4jBrowser

The user interface and behavior for the Neo4j Browser application and Neo4j Browser Web interface is identical, except that in the Web interface, you have the option of syncing your settings and scripts to the cloud.

Guided Exercise: Getting Started with Neo4j Browser

Follow along with this video to become familiar with common tasks in Neo4j Browser. You will use Neo4j Browser to populate the Movies database that is used for training as well as syncing your settings and scripts to the cloud.

Before you perform the tasks shown in this video, you must have either created and started the database in the Neo4j Desktop, created a Database in Neo4j Aura, or created a Neo4j Sandbox.

Check your understanding

Question 1

What development environment do you use if you want to develop a graph-enabled application using a local Neo4j Database?

Select the correct answer.

  • Neo4j Desktop

  • Neo4j Sandbox

Question 2

What development environment do you use if you want develop a graph-enabled application using a temporary, cloud-based Neo4j Database?

Select the correct answer.

  • Neo4j Desktop

  • Neo4j Sandbox

Question 3

Which Neo4j Browser command do you use to view a browser guide for the Movie graph?

Select the correct answer.

  • MATCH (Movie Graph)

  • :MATCH (Movie Graph)

  • play Movie Graph

  • :play Movie Graph

Summary

You can now:

  • Determine the development environment that is best for you:

    • Install and start using the Neo4j Desktop.

    • Create a Neo4j Database instance in the cloud with Neo4j Aura.

    • Create a Neo4j Sandbox for learning Neo4j.

  • Start using Neo4j Browser.