Serverless Web IDE is an IDE for functions launched by Tencent Cloud Serverless in partnership with CODING based on CloudStudio, an integrated development environment for browsers. It delivers an on-cloud development experience comparable to native IDEs.
Serverless Web IDE supports:
- We will keep the personalized configuration and code status in Serverless Web IDE for you. To ensure that function modifications will take effect, please deploy the modifications to the cloud in a timely manner.
- We recommend you use the latest version of Google Chrome to get the best IDE user experience.
This document describes the Serverless Web IDE tool in detail as shown below in order from left to right:
In Serverless Web IDE, you can edit, deploy, and test function code. Common operations such as function testing and deployment and testing template selection are configured in the operation section in the top-right corner of the IDE as shown below:
Serverless Web IDE enables you to deploy a function either manually or automatically and to install dependencies online.
package.jsonwhen the function is deployed. For more information, please see Online Dependency Installation.
- The root directory of the function is
/src, and the deployment operation will package and upload the files in the
/srcdirectory by default. Please place the files that you want to deploy to the cloud in the
- In automatic deployment mode, you can trigger function deployment to the cloud by saving the function. Therefore, we recommend you not enable automatic deployment for functions with traffic.
You can switch between manual and automatic deployment and enable/disable online dependency installation by selecting from the drop-down list in the operation section in the top-right corner of the IDE. Automatic Deployment: Disabled indicates the manual deployment mode.
You can click Test in the operation section in the top-right corner of the IDE to trigger the function and view the result in the output.
scf\_test\_eventfolder in the
/srcroot directory of the function and deployed to the cloud with the function as shown below:
You can view the function testing result in the output, including the returned data
Response, the log
Output, and the function execution summary
In addition to operations such as function deployment and testing as well as testing template adding, the list expanded by right-clicking the function file in the Resource Manager contains all operations related to the function, including:
serverless.yml: you can write the current configuration of the function into the
serverless.ymlconfiguration file and use the Serverless Framework command line tool for further development;
The extensions, common tools, and runtime environments configured in Serverless Web IDE and their versions are as follows:
|zip and unzip||6|
|Serverless Framework CLI||3.2.1|
Performing the following operations in the IDE may cause security risks such as data leakage. If you have to perform them, please do so with caution: