Skip to content

aerospike-community/spring-data-aerospike-starters-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

spring-data-aerospike-starters-demo

Work in progress…​ Here are just some initial notes.

Setup project

Initialize project using Spring Boot Initializr https://start.spring.io/

Add production dependencies:

pom.xml
<dependency>
  <groupId>com.aerospike</groupId>
  <artifactId>spring-boot-starter-data-aerospike</artifactId>
  <version>0.6.0</version>
</dependency>

Add test dependencies:

pom.xml
<dependency>
    <groupId>com.playtika.testcontainers</groupId>
    <artifactId>embedded-aerospike</artifactId>
    <version>2.0.16</version>
    <scope>test</scope>
</dependency>
pom.xml
<dependency>
  <groupId>io.rest-assured</groupId>
  <artifactId>rest-assured</artifactId>
</dependency>

Setup persistence

Create entity.

Create repository interface.

Create test.

embedded.aerospike.dockerImage (default is set to 'aerospike/aerospike-server:4.3.0.8')

Minimal application is up and running.

Voila.

About

Spring Boot Demo application for spring-data-aerospike-starters

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published