Your Neo4j Sandbox

As part of this course, a Neo4j Sandbox instance has been created for you with the recommendations dataset. This dataset contains all of the details required to populate the Neoflix website.

What is Neo4j Sandbox?

Neo4j Sandbox is a free service that allows you to create pre-populated Neo4j instances completely free of charge. Neo4j Sandbox is the perfect environment for experimenting with Neo4j.

You can log into Neo4j Sandbox and create a database with a number of pre-populated datasets by visiting sandbox.neo4j.com.

Extending Your Sandbox Instance

By default, a Neo4j sandbox instance exists for 3 days. You can extend it for another 7 days by going to the sandbox site and extending it in the details (right-most down arrow) for the recommendations sandbox.

How to extend your Neo4j Sandbox instance

Setting Application Properties

You should add these properties to your application.properties file so they can be used within the API.

env
application.properties File
NEO4J_URI=neo4j://{sandbox-ip}:{sandbox-boltPort}
NEO4J_USERNAME={sandbox-username}
NEO4J_PASSWORD={sandbox-password}

Once saved, these can be accessed through the application.properties variable.

java
Accessing Application Properties
var properties = AppUtils.loadProperties();
var uri = System.getProperty("NEO4J_URI");

Applying Application Properties

Remember to restart the process after saving the application.properties file to apply the application properties.

Mark as Completed

Once you have added the settings above to your configuration file, click the button below to continue.

Lesson Summary

You now have a project setup and running with dummy data, and you have added your sandbox configuration details to the environment variables. You should now be ready to go.

In the next module, you will learn about the Neo4j en Driver.