Skip to content

neo4j-examples/spring-data-neo4j-intro-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Data Neo4j Intro App

This application’s goal is to provide a minimum REST API functionality for using Spring Data Neo4j with SpringBoot and Neo4j graph database. The project uses the following technologies:

  • Spring Data Neo4j

  • Spring Boot

Previous technologies (SDN5+OGM) are shown on the sdn5 branch of this repository.

Data set

The data set uses the movie data set (a Neo4j favorite), describing movies and the people connected to them (actors, directors, etc).

Movies graph data model

Run the application

./mvnw spring-boot:run

Test the application by hitting the following endpoints:

#all movies
http ":8080/movies"
#find movie by title
http ":8080/movies/The Polar Express"
#find movie title like (fuzzy search)
http ":8080/movies/search/Matrix"

#all people
http ":8080/people"
#find person by name
http ":8080/people/Carrie Fisher"
#find person by name like (fuzzy search)
http ":8080/people/search/Bale"
#find people who acted in and directed a movie
http ":8080/people/actanddirect"

Note: The above commands are using the HTTPie command line tool, but you can use curl similarly.

Resources

About

Introductory application for integrating Neo4j graph database and Spring Data Neo4j

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages