Dart plugin
Tencent CloudBase Framework Dart Server Plugin
CloudBase Framework "Dart Server" Plugin: Deploy Dart Server to the CloudBase environment with one click via the CloudBase Framework, delivering a high-performance Dart Server application service with automatic elastic scaling for production-ready use. It integrates seamlessly with the Flutter framework to enable cloud-native integrated development.
Features
- No need to worry about the underlying architecture: Just develop business services without adapting to the underlying infrastructure
- Cost Savings: Achieves significant resource cost reduction through resource scaling, elastic scaling, and flexible billing.
- Framework Support: Seamlessly supports projects built with the Dart Server framework.
Usage
Step 1. Preparations
Specific steps please refer to Preparing the Cloud Development Environment and CloudBase CLI Command Tool
Step 2. Enter the project directory and initialize
Execute the following command to initialize a new dart server project.
cloudbase init --template dart
Step 3. One-Click Deployment
cloudbase framework deploy
Configuration
By default, no configuration is required for use. The following configuration parameters are intended for scenarios with specific requirements.
Configuration Example
After running
cloudbase init, the Cloud Development configuration file
cloudbaserc.json` will be created. You can modify and write plugin configurations in the plugins section of the configuration file.
{
"envId": "{{envId}}",
"framework": {
"plugins": {
"client": {
"use": "@cloudbase/framework-plugin-dart",
"inputs": {
"serviceName": "dartapp",
"servicePath": "/dartapp",
"localPath": "./"
}
}
}
}
}
Configuration Parameters Description
serviceName
Required, service name, string format, such as dart-api
servicePath
Required. Service path configuration in string format, such as /dart-api
.
localPath
Optional. Path of the local code folder relative to the project root directory. Default: ./
localAbsolutePath
Optional. Absolute path of the local code folder.
version
Optional. Version name. Default: 1.0.0
isPublic
Optional. Whether to allow public access. Default: true
More Plugins
Please visit the CloudBase Framework Plugin List to use other plugins in combination
Documentation Resources
- CloudBase official website: https://tcb.cloud.tencent.com/
- CloudBase Static Website Setup Guide: https://docs.cloudbase.net/hosting/
- CloudBase Console: https://console.cloud.tencent.com/tcb