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.

Your Sandbox Credentials

Browser URL

https://e5a5757d8ff93cbfd1dc60bd95a8de8c.neo4jsandbox.com/browser/

Bolt URI

bolt://3.238.140.157:7687

Websocket Bolt URI

bolt+s://e5a5757d8ff93cbfd1dc60bd95a8de8c.neo4jsandbox.com:7687

Username

neo4j

Password

diagrams-east-offenders

You can open a Neo4j Browser window throughout this course by clicking the Toggle Sandbox button in the bottom right hand corner of the screen.

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

Updating App Settings

You should add these properties to the Neoflix/appsettings.json file so they can be used within the API.

json
Your appsettings.json File
{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },
  "AllowedHosts": "*",
  "Jwt": {
    "secret": "SuperSecureSecret"
  },
  "Neo4j": {
    "uri": "neo4j://3.238.140.157:7687",
    "username": "neo4j",
    "password": "diagrams-east-offenders"
  },
  "Password": {
    "rounds": "10"
  }
}

Once saved, these values are accessed through the Config class and loaded into the application.

c#
Accessing Application Properties
var config = new ConfigurationBuilder()
    .AddJsonFile("appsettings.json")
    .Build();

var neo4j = config.GetSection("Neo4j");
Neo4jUri = neo4j["uri"];
Neo4jUsername = neo4j["username"];
Neo4jPassword = neo4j["password"];

Applying Application Properties

Remember to restart the process after updating appsettings.json to apply the updated configuration.

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 Java Driver.

Chatbot

Hi, I am an Educational Learning Assistant for Intelligent Network Exploration. You can call me E.L.A.I.N.E.

How can I help you today?