Skip to content

Spring Boot Integration with Cassandra cloud (Datastax Cassandra Astra)

Notifications You must be signed in to change notification settings

AravindPalani95/SpringBoot_Integration_Cassandra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hacker News Microservice built using Spring Boot

Prerequisite

1. Cassandra Configuration

Create Cassandra Astra Account in DataStax https://astra.datastax.com/register

After registration create your keyspace and configure credentails for your Cassandra Astra Instance.

Download Cassandra Secure Connect bundle Rename it as secure-connect.zip and place it in resource/cassandra_bundle/secure-connect.zip

2. Create Cassandra Table - CQL

Launch developer studio from conection details

create your notebook and run the below query

create table story(id int, title text, url text, score int, time int, by text, descendants int, kids list<int>,type text,primary key(id));

3. Update application.properties file

update the following properties in application.properties file

spring.cassandra.username = <Cassandra Astra Useranme>

spring.cassandra.password = <Cassandra Astra Password>

spring.cassandra.keyspace = <Cassandra Astra Keyspace>

Docker Build

Docker file provided in the project, build docker image using following cmd

docker build -t hackerstory:1.0

Swagger Document

Swagger document available at following url http://localhost:PORT/swagger-ui.html

About

Spring Boot Integration with Cassandra cloud (Datastax Cassandra Astra)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published