Build Cloud-Native apps with Apache Cassandra

GOT QUESTIONS from the Workshop? You're in the right place! Post a question here and we'll get you answers.

Click here for Week 6 Materials and Homework.

Registrations still open!


question

stephaniesalvador1_162030 avatar image
stephaniesalvador1_162030 asked ·

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.

workshop
10 |1000 characters needed characters left characters exceeded

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 ·

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
python getting_started_with_astra.py

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>.gitpod.io/api' > .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: secure-connect-killrvideo.zip

click on: Test Connection

3 comments Share
10 |1000 characters needed characters left characters exceeded

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

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?

Cheers!

1 Like 1 · ·

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

1 Like 1 · ·

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 · ·