10 minutes, Beginner, Start Building
This application uses Spring Data Cassandra and DataStax Astra to build a REST API for a backend service that interacts with products and orders.
- Run a REST API that connects to DataStax Astra
We're using Spring Data Cassandra and Datastax Astra to build a REST API that stores Products and Orders.
To build and play with this app, follow the build instructions that are located here: https://github.com/DataStax-Examples/spring-data-starter
Follow the instructions below to get started.
Let's do some initial setup.
-
Create a DataStax Astra account if you don't already have one:
-
Define a database name, keyspace name and credentials (Take note of the DB Password)
-
Your Astra DB will be ready when the status will change from
Pending
toActive
💥💥💥 -
Locate the combo
Organization: <Your email>
on the top navigation. In the drop down menu, click your current organization. -
Scroll down to the bottom of the page and locate
Service Account
inSecurity Settings
and selectCopy Credentials
as shown below.
-
Click
Use this template
at the top of the GitHub Repository: -
Enter a repository name and click 'Create repository from template':
Make sure you've completed the prerequisites before starting this step
-
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:
-
When the app is finished building, click the 'Open Browser' button on the bottom right of the screen:
-
You've successfully build a Spring Data Cassandra application!