From ab2290eecd602ab8af4015ad07046982ef805d56 Mon Sep 17 00:00:00 2001 From: Mesut Can Gurle Date: Fri, 23 Dec 2016 13:19:14 +0300 Subject: [PATCH] Improve Cassandra sample README documentation Update the README file in `spring-boot-sample-data-cassandra` with details of how to setup the keyspace and create the tables. Closes gh-7737 --- .../spring-boot-sample-data-cassandra/README.adoc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/spring-boot-samples/spring-boot-sample-data-cassandra/README.adoc b/spring-boot-samples/spring-boot-sample-data-cassandra/README.adoc index 2cee98998c9..6712ec1a854 100644 --- a/spring-boot-samples/spring-boot-sample-data-cassandra/README.adoc +++ b/spring-boot-samples/spring-boot-sample-data-cassandra/README.adoc @@ -1,4 +1,12 @@ += Spring Boot Sample Data Cassandra +To run the project, need to run below `cql` commands on Cassandra. -CREATE KEYSPACE mykeyspace WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 }; +== Keyspace Creation in Cassandra +[source,indent=0] +---- + CREATE KEYSPACE mykeyspace WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 }; +---- +== Table Creation in Cassandra +Run `cql` using the link:src/test/resources/setup.cql[setup script] located in resources folder.