stephaniesalvador1_162030 avatar image
stephaniesalvador1_162030 asked David Jones-Gilardi commented

Sharing - How I configured Gitpod to connect the week 4 Python app to Astra

This is how I configured Gitpod for the week 4 workshop exercise.

10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

stephaniesalvador1_162030 avatar image
stephaniesalvador1_162030 answered David Jones-Gilardi commented

Hi, it took me many tries and searching the questions (thank you for your answers) - I now was able to connect to ui with python in gitpod. This is what I did.

In Gitpod using python:

cd week4-AppDev-api
cd getting-started-with-astra-python
pip install Flask flask-cors cassandra-driver

Make Public (A service is available on port 5000)

Open Brower -- Hello World, I am the Python API for Getting Started with Astra! We have no Swagger interface for this API (yet), but I am up and running!

copy the url

open new terminal

cd week4-AppDev-api
cd getting-started-with-astra-ui

echo 'BASE_ADDRESS=https://<your_port>-<your_id>.<your_region>' > .env
cat .env

npm install
npm start

Make Public (A service is available on port 3000)

Open Browser

the screen has a window: Connect to your Astra Database

KVUser / KVPassword / killrvideo

drag and drop:

click on: Test Connection

3 comments Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

bettina.swynnerton avatar image bettina.swynnerton ♦♦ commented ·

Hi @stephaniesalvador1_162030,

if I understand you correctly, you are reporting a successful connection? This is great news, and thanks for the detailed steps.

Did you manage to launch your journeys successfully after that?


1 Like 1 ·
Erick Ramirez avatar image Erick Ramirez ♦♦ commented ·

+1 to what Bettina said. Thanks so much for sharing this info. Other workshop participants will love you for it. Cheers!

1 Like 1 ·
David Jones-Gilardi avatar image David Jones-Gilardi ♦ commented ·

I'm going to add onto this and, again, say "thank you" for this post. Nice job in getting it working. This kind of stuff makes our community better. :D

0 Likes 0 ·