Skip to content

Latest commit

 

History

History
71 lines (57 loc) · 2.49 KB

step1-astra.md

File metadata and controls

71 lines (57 loc) · 2.49 KB
Shopping Cart Data Modeling ℹ️ For technical support, please contact us via email or LinkedIn.
⬅️ Back Step 1 of 10 Next ➡️
Connect to Astra DB and create a database

✅ Create an application token with the Database Administrator role to access Astra DB. Skip this step is you already have a token.

You can reuse the same token in our other labs, too.

✅ Setup Astra CLI by providing your application token:

astra setup

✅ List your existing Astra DB databases:

astra db list

✅ Create database data-modeling and keyspace shopping_cart_data if they do not exist:

astra db create data-modeling -k shopping_cart_data --if-not-exist --wait

This operation may take a bit longer when creating a new database or resuming an existing hibernated database.

✅ Verify that database data-modeling is ACTIVE and keyspace shopping_cart_data exists:

astra db get data-modeling

✅ Start the CQL shell and connect to database data-modeling and keyspace shopping_cart_data:

clear
astra db cqlsh data-modeling -k shopping_cart_data
⬅️ Back Next ➡️