You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
# Simple script to run on a GitPod terminal to prove the software is working. Important assumption that the following table exists in your Astra Cassandra instance ;-)
# The environment command below needs to be run first to correctly poulate the environmnet for this to work
mkdir /workspace/test4
cd /workspace/test4
cat > t.cql <<EOF
CREATE TABLE demo.verysimple (
id int PRIMARY KEY,
message text,
WITH CLUSTERING ORDER BY (id ASC)
);
EOF
cd /workspace/cassuservice
go run main.go -file=/workspace/test4/t.cql -goPackageName=github.com/stevef1uk/test4 -dirToGenerateIn=/workspace/go/src/github.com/stevef1uk/test4 --post=true -consistency=gocql.LocalQuorum
echo "Code generated in /workspace/go/src/github.com/stevef1uk/test4 "
echo "You will need to donload the Astra secure connect bundle and upload them to this GitPod and set the appropriate values in env.sh before this script will work"
echo "In another terminal window type: curl -X GET 'http://127.0.0.1:5000/v1/verysimple?id=1'"
echo 'To store a record use: curl -d ' "'" '{"id": 1, "message": "steve"}' "'" ' -H "Content-Type: application/json" -v -X POST "http://127.0.0.1:5000/v1/verysimple"'