Explore the SDK Playground
- Capella Operational
- tutorial
Use the SDK Playground to practice and learn more about Couchbase’s SDKs and SQL++.
The SDK Playground lets you try out Couchbase SDKs and SQL++ code examples through interactive tutorials inside the Couchbase Capella UI.
SDK Playground
The code examples in the SDK Playground run in a remote execution environment deployed in the USA, which imposes limits to the runtime of each programming language. The remote environment has a firewall that prevents access to domains or networks outside of the Couchbase Cloud environment.
When you run a code example on the SDK Playground, Couchbase Capella:
-
Generates a temporary credential for you with read and write access to the bucket you used for the code example. This temporary credential is destroyed after your code example request is executed.
-
Provides the remote execution environment with temporary network access to your cluster. This temporary network access is automatically revoked after one hour.
For security purposes, do not include your cluster access credentials in your code examples.
Prerequisites
Before you use the SDK playground, make sure that you have access to the travel-sample
bucket on your cluster.
If you do not have access to the travel-sample
bucket, import the sample data or open a support ticket.
Use the SDK Playground
To use the SDK Playground:
-
Go to Playground and select one of the following tutorials:
-
Developing Application with SDKs to learn how to use Couchbase SDKs to access your data.
-
Understand the Power of SQL++ to explore different SQL++ queries and experiment with data.
-
-
Click Open in Playground.
-
In the tutorial home page, you can do the following:
-
Select the Node.js, Python, or Go tab above the example code to change the programming language of the code sample.
-
Click Run to execute the example code and generate the response in the Response field.
-
Click Next to go to the next chapter of the tutorial.
-
Click Prev to return to the previous chapter of the tutorial.
-
Select a chapter from the Chapter list to go to a specific chapter.
-
Click Exit Playground to return to the Capella home page.
-
To make small changes to the code examples, you must make sure that:
Your code examples will not run if they do not meet these requirements. |
Turn off the SDK Playground
To turn off the SDK Playground:
-
Go to Clusters.
-
Select the cluster you want to turn off the SDK Playground for.
-
Go to
. -
In the Playground section, select Disable Playground.
-
Click Save.
Next Steps
After you explore the SDK Playground, you can:
If you want to connect to your cluster:
-
Generate your cluster credentials to connect and control access to you cluster.
-
Add your current IP address as an allowed IP for you cluster.
-
Generate a code snippet to connect your cluster to your application.
-
Choose and install a Couchbase SDK.
-
(Optional) Download the security certificate for your cluster and add it to your application’s server machine or IDE:
-
In the Operational tab, select a cluster.
-
Go to
. -
Click Download.
-