All Projects → DataStax-Examples → spring-data-starter

DataStax-Examples / spring-data-starter

Licence: Apache-2.0 license
⚡️ A sample Spring Data Cassandra REST API

Programming Languages

java
68154 projects - #9 most used programming language
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to spring-data-starter

battlestax
BattleStax is a stateful JAMStack game that is wholesome fun for the entire crew.
Stars: ✭ 32 (-11.11%)
Mutual labels:  cassandra, dev, building-sample-apps
astra-tik-tok
A simple Tik Tok clone running on AstraDB that leverages the Document API.
Stars: ✭ 21 (-41.67%)
Mutual labels:  dev, building-sample-apps
Spring Data Cassandra
Provides support to increase developer productivity in Java when using Apache Cassandra. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.
Stars: ✭ 315 (+775%)
Mutual labels:  cassandra, spring-data
Ebook Chat App Spring Websocket Cassandra Redis Rabbitmq
Pro Java Clustering and Scalability: Building Real-Time Apps with Spring, Cassandra, Redis, WebSocket and RabbitMQ
Stars: ✭ 186 (+416.67%)
Mutual labels:  cassandra, spring-data
dockerfiles
Multi docker container images for main Big Data Tools. (Hadoop, Spark, Kafka, HBase, Cassandra, Zookeeper, Zeppelin, Drill, Flink, Hive, Hue, Mesos, ... )
Stars: ✭ 29 (-19.44%)
Mutual labels:  cassandra
FIFO-Driver
Character device driver working as FIFO pipe, created with a Linux Kernel module (SMP-Safe). Works on Android's kernel.
Stars: ✭ 12 (-66.67%)
Mutual labels:  dev
crystal-cassandra
A Cassandra driver for Crystal
Stars: ✭ 20 (-44.44%)
Mutual labels:  cassandra
leetspeek
Open and collaborative content from leet hackers!
Stars: ✭ 11 (-69.44%)
Mutual labels:  dev
zeppelin-spark-cassandra-demo
A demo explaining how to use Zeppelin notebook to access Apache Cassandra data via Apache Spark or CQL language
Stars: ✭ 17 (-52.78%)
Mutual labels:  cassandra
cassandra-top
Cassandra top command to monitor cluster without Datastax OpsCenter, and log nodetool administrative commands
Stars: ✭ 13 (-63.89%)
Mutual labels:  cassandra
hacktoberfest2021-Excluded
You can submit any PR and have SWAGS. Happy Hacktoberfest !
Stars: ✭ 63 (+75%)
Mutual labels:  dev
springboot-mongodb-security
Spring Boot, Security, and Data MongoDB Authentication Example
Stars: ✭ 22 (-38.89%)
Mutual labels:  spring-data
workshop-intro-to-cassandra
Learn Apache Cassandra fundamentals in this hands-on workshop
Stars: ✭ 208 (+477.78%)
Mutual labels:  cassandra
spring-boot-refresh-token-jwt
Spring Boot Refresh Token using JWT example - Expire and Renew JWT Token
Stars: ✭ 156 (+333.33%)
Mutual labels:  spring-data
jelass
Janus + Elastic Search + Cassandra docker container with SSL Client Certificates implemented.
Stars: ✭ 13 (-63.89%)
Mutual labels:  cassandra
the-apache-ignite-book
All code samples, scripts and more in-depth examples for The Apache Ignite Book. Include Apache Ignite 2.6 or above
Stars: ✭ 65 (+80.56%)
Mutual labels:  spring-data
Cassandra-Data-Modeling
Basic Rules of Cassandra Data Modeling
Stars: ✭ 29 (-19.44%)
Mutual labels:  cassandra
docker-cassandra-k8s
Cassandra Docker optimized for Kubernetes
Stars: ✭ 13 (-63.89%)
Mutual labels:  cassandra
microservices-transactions
Choreography-based sagas to maintain data consistency in a microservice architecture.
Stars: ✭ 20 (-44.44%)
Mutual labels:  cassandra
cassandra-diagnostics
Cassandra Node Diagnostics Tools
Stars: ✭ 51 (+41.67%)
Mutual labels:  cassandra

Spring Data Cassandra REST API

10 minutes, Beginner, Start Building

This application uses Spring Data Cassandra and DataStax Astra DB to build a REST API for a backend service that interacts with products and orders.

image

Objectives

  • Run a REST API that connects to DataStax Astra DB

How this works

We're using Spring Data Cassandra and Datastax Astra DB to build a REST API that stores Products and Orders.

Get Started

To build and play with this app, follow the build instructions that are located here: https://github.com/DataStax-Examples/spring-data-starter

Running Spring Data Cassandra REST API

Follow the instructions below to get started.

Prerequisites

Let's do some initial setup by creating a serverless(!) database.

DataStax Astra

  1. Create a DataStax Astra account if you don't already have one: image

  2. On the home page. Locate the button Create Database image

  3. Locate the Get Started button to continue image

  4. Define a database name, keyspace name and select a database region, then click create database. image

  5. Your Astra DB will be ready when the status will change from Pending to Active 💥💥💥 image

  6. After your database is provisioned, we need to generate an Application Token for our App. Go to the Settings tab in the database home screen. image

  7. Select Admin User for the role for this Sample App and then generate the token. Download the CSV so that we can use the credentials we need later. image

  8. After you have your Application Token, head to the database connect screen and select the driver connection that we need. Go ahead and download the Secure Bundle for the driver. image

  9. Make note of where to use the Client Id and Client Secret that is part of the Application Token that we generated earlier. image

Github

  1. Click Use this template at the top of the GitHub Repository: image

  2. Enter a repository name and click 'Create repository from template': image

  3. Clone the repository: image

🚀 Getting Started Paths:

Make sure you've completed the prerequisites before starting this step

Running on Gitpod

  1. Click the 'Open in Gitpod' link: Open in IDE

  2. Once your Gitpod workspace has loaded, you'll be asked to paste your service account credentials in the Gitpod terminal at the bottom of the screen: image

  3. When the app is finished building, click the 'Open Browser' button on the bottom right of the screen: image

  4. You've successfully build a Spring Data Cassandra application! image

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].