Skip to content

Latest commit

 

History

History

cassandra-data-service

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Cassandra Data Service

Cassandra Data API

Technology stack
  • Spring Boot 2.0.0
  • Spring WebFlux
  • Reactive Cassandra Driver
  • Integration tests with Docker Compose
Features
  • Functional Style Routes
  • CORS Enabled
  • Dockerized
  • Use of Spring Data Cassandra

Run

use ./gradlew instead of gradle if you didn't installed gradle

gradle cassandra-data-service:bootRun
# run with `docker` profile.
SPRING_PROFILES_ACTIVE=docker gradle cassandra-data-service:bootRun

Test

# start the dependent containers first... (TODO: issue with starting  delay of  cassandra)
docker-compose -f docker-compose-infra.yml up cassandra
docker-compose -f docker-compose-infra.yml up kafka
# run the tests
gradle cassandra-data-service:test

Build

gradle cassandra-data-service:build
gradle cassandra-data-service:build -x test -t 
# skip test
gradle cassandra-data-service:build -x test 
# build docker image
gradle cassandra-data-service:docker -x test 

Deploy

deploying app to Cloud

# tag and puch to cassandra-data-service
docker login
docker push

API

Local API

EventSource API

Ref