Read Blog/Documentation (in progress): https://zeljko-predjeskovic.github.io/springboot-social-media/
Spring: https://spring.io/guides/gs/accessing-data-neo4j/
Neo4J: https://neo4j.com/developer/spring-data-neo4j/
Make sure that you work in a Java 16 environment.
git clone https://github.com/Zeljko-Predjeskovic/springboot-social-media.git
cd springboot-social-media
mvn clean
mvn install
run application on IDE
Define your Neo4j connection in src/main/resources/application.properties
spring.data.neo4j.uri=bolt://localhost:7687 // your connection path
spring.data.neo4j.username=neo4j // database username
spring.data.neo4j.password=secret // database password
The value written in this example is the default connection. You actually don't have to write anything if you use a default connection. Notice that Neo4j uses a Bolt network protocol to connect. It will not except a http connection.
Clone project:
git clone https://github.com/Zeljko-Predjeskovic/springboot-social-media.git
Change in the properties the neo4j uri:
spring.data.neo4j.uri= bolt://neo4j:7687
Open cmd for the project:
cd springboot-social-media
Maven install for the target/*.jar file
mvn install
Build container with app and database
docker-compose up
After you run the app, open the UI on the web browser, usually on localhost:8080. There you can read about the API services and also test them visually.