Goal(s):
- Spring Boot app with a rest endpoint to connect to real cassandra instance.
- Spring Boot component tests to connect to an embedded cassandra (These can be integrated and run as part of our CI)
Step(s) towards building it
- Create a stand alone spring boot maven project using SPRING INITIALIZR at https://start.spring.io/
- Add all the spring boot dependencies required. Critical ones are listed below
- spring-boot-starter-data-cassandra - spring boot jpa for cassandra to support CRUD operations
- cassandra-driver-core - Cassandra driver to connect to real cassandra or embedded cassandra
- cassandra-unit-spring - To start an embedded cassandra
- cassandra-unit-shaded - To start an embedded cassandra
- Add a spring boot rest endpoint which inserts the data into a real cassandra instance by defining the controller(s), repositories(s)
- Add a spring boot component tests to connect to embedded cassandra and validate the results.