Application that demonstrates how Cassandra reactive repositories work along with WebFlux.
- Java 10
- Docker
Docker images for Cassandra and the application itself are provided at the src/main/docker
directory, as well as the necessary bash scripts to initialize the containers at src/main/bash
.
-
Build Java artifact
$ ./gradlew clean build -x test
-
Create Docker images
$ docker-compose build
-
Start up the containers
$ docker-compose up
-
In order to build the images and start up the containers in the same command, type
$ docker-compose up --build
The RassandraApplication
class has some statements that insert data into Cassandra.
Once the containers have started, go to http://localhost:3000/people
- Jovanny Cruz -- jovannypcg