DataStax-Examples/spring-data-starter

10/23/2020
Reading time: 1 mins
springjavaexamplescassandra

DataStax-Examples/spring-data-starter

10 minutes, Beginner

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

image

✅ A - Get your Astra Instance

Astra

  • On the home page. Locate the button Add Database

Astra

  • Pick free plan and a region close to you, click configure.

Astra

  • Define a database name, keyspace name and credentials

Astra

  • Database will be ready when the status will change from Pending to Active 💥💥💥

my-pic .

✅ B - Copy your credentials

  • Locate the combo Organization: <Your email> on the top navigation. On the right side of your organization, click the elipsis (...) then click your <Your email>.

my-pic

  • Scroll down to the bottom of the page and locate Service Account in Security Settings

my-pic

  • In the Security Setting tables, select Copy Credentials as shown below

my-pic

✅ C - Running on Gitpod

  • Your credentials in the clipboard, click Open in Gitpod button below:

Open in Gitpod

  • 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

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

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