Skip to content

Making with Springboot a social media API and Neo4J database. (English)

Notifications You must be signed in to change notification settings

Zeljko-Predjeskovic/springboot-social-media-neo4j-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Springboot Application with Neo4J

Sources

Spring: https://spring.io/guides/gs/accessing-data-neo4j/

Neo4J: https://neo4j.com/developer/spring-data-neo4j/

Start the app

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.

Run it on docker

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

When it runs

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.

About

Making with Springboot a social media API and Neo4J database. (English)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published