These are the components of our Web Application:
-
Application Type: .NET Core Application.
-
Web framework: ASP.NET core
-
Neo4j Database Connector: Neo4j .NET Driver for working with Cypher
-
Database: Neo4j-Server 3.5, 4.X/5.X with multi-database
-
Frontend: jquery, bootstrap, d3.js
Provision a database quickly with Neo4j Sandbox or Neo4j Aura.
Get Movie
// JSON object for single movie with cast curl http://BASE_URL/movie/The%20Matrix // list of JSON objects for movie search results curl http://BASE_URL/search?q=matrix // JSON object for whole graph viz (nodes, links - arrays) curl http://BASE_URL/graph
Start this application with:
dotnet run
Go to http://localhost:8080
You can search for movies by title or and click on any entry.
Note
|
These are preferably configured via Properties/launchSettings.json .
|
Environment variable name | Default value (or N/A) |
---|---|
PORT |
8080 |
NEO4J_URI |
neo4j+s://demo.neo4jlabs.com |
NEO4J_USER |
movies |
NEO4J_PASSWORD |
movies |
NEO4J_DATABASE |
movies |
NEO4J_VERSION |
4 |
Please set NEO4J_VERSION
to 3.5
when running Neo4j 3.5.x. Leave as is otherwise.
To run the database locally as well, start your local Neo4j Server (Download & Install), open Neo4j Browser.
Then install the Movies data-set with :play movies
, click the statement, and hit the triangular "Run" button.
Then, override the relevant environment variables above.