{"id":18248154,"url":"https://github.com/serverless-components/tencent-framework","last_synced_at":"2025-07-27T03:08:37.684Z","repository":{"id":57140120,"uuid":"247040017","full_name":"serverless-components/tencent-framework","owner":"serverless-components","description":"Tencent Cloud Framework Serverless Component","archived":false,"fork":false,"pushed_at":"2020-07-13T22:48:56.000Z","size":48,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-07-06T07:08:50.803Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serverless-components.png","metadata":{"files":{"readme":"README.en.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-13T09:59:56.000Z","updated_at":"2025-04-11T02:13:22.000Z","dependencies_parsed_at":"2022-09-05T00:20:45.592Z","dependency_job_id":null,"html_url":"https://github.com/serverless-components/tencent-framework","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/serverless-components/tencent-framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-components%2Ftencent-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-components%2Ftencent-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-components%2Ftencent-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-components%2Ftencent-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serverless-components","download_url":"https://codeload.github.com/serverless-components/tencent-framework/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-components%2Ftencent-framework/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267293776,"owners_count":24065325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T09:36:01.981Z","updated_at":"2025-07-27T03:08:37.631Z","avatar_url":"https://github.com/serverless-components.png","language":"JavaScript","readme":"# Tencent Framework Serverless Component\n\n[![npm](https://img.shields.io/npm/v/%40serverless%2Ftencent-framework)](http://www.npmtrends.com/%40serverless%2Ftencent-framework)\n[![NPM downloads](http://img.shields.io/npm/dm/%40serverless%2Ftencent-framework.svg?style=flat-square)](http://www.npmtrends.com/%40serverless%2Ftencent-framework)\n\n[简体中文](https://github.com/serverless-components/tencent-framework/blob/master/README.md) | English\n\n## Introduction\n\nFramework Serverless Component for Tencent Cloud, it provides foundation management for cloud Baas production. You can develop a framework component quickly by using it.\n\n## Content\n\n1. [Install](#1-install)\n2. [Create](#2-create)\n3. [Configure](#3-configure)\n4. [Deploy](#4-deploy)\n5. [Remove](#5-Remove)\n\n### 1. Install\n\nInstall the Serverless Framework globally:\n\n```bash\n$ npm install -g serverless\n```\n\n### 2. Create\n\nIn project root, create the following simple boilerplate:\n\n```bash\n$ touch serverless.yml\n$ touch .env           # your Tencent api keys\n```\n\nAdd the access keys of a [Tencent CAM Role](https://console.cloud.tencent.com/cam/capi) with `AdministratorAccess` in the `.env` file, using this format:\n\n```\n# .env\nTENCENT_SECRET_ID=XXX\nTENCENT_SECRET_KEY=XXX\n```\n\n- If you don't have a Tencent Cloud account, you could [sign up](https://intl.cloud.tencent.com/register) first.\n\n### 3. Configure\n\n```yml\n# serverless.yml\nmyFramework:\n  component: '@serverless/tencent-framework'\n  inputs:\n    framework: test\n    functionName: framework-function\n    region: ap-guangzhou\n    handler: app.handler\n    runtime: Nodejs8.9\n    code: ./\n    functionConf:\n      timeout: 30\n      memorySize: 128\n    environment:\n      variables:\n        RUN_ENV: test\n    apigatewayConf:\n      protocols:\n        - http\n        - https\n      environment: release\n```\n\n- [More Options](https://github.com/serverless-components/tencent-framework/blob/master/docs/configure.md)\n\n### 4. Deploy\n\n#### 4.1 Build static assets\n\n```bash\n$ npm run build\n```\n\n#### 4.2 Deploy to cloud\n\n```bash\n$ sls --debug\n\n  DEBUG ─ Resolving the template's static variables.\n  DEBUG ─ Collecting components from the template.\n  DEBUG ─ Downloading any NPM components found in the template.\n  DEBUG ─ Analyzing the template's components dependencies.\n  DEBUG ─ Creating the template's components graph.\n  DEBUG ─ Syncing template state.\n  DEBUG ─ Executing the template's components graph.\n  DEBUG ─ Compressing function framework-function file to /Users/yugasun/Desktop/Develop/serverless/tencent-framework/example/.serverless/framework-function.zip.\n  DEBUG ─ Compressed function framework-function file successful\n  DEBUG ─ Uploading service package to cos[sls-cloudfunction-ap-guangzhou-code]. sls-cloudfunction-default-framework-function-1584093126.zip\n  DEBUG ─ Uploaded package successful /Users/yugasun/Desktop/Develop/serverless/tencent\n-framework/example/.serverless/framework-function.zip\n  DEBUG ─ Creating function framework-function\n  framework-function [████████████████████████████████████████] 100% | ETA: 0s | Speed: 3.83k/s\n  DEBUG ─ Updating code...\n  DEBUG ─ Updating configure...\n  DEBUG ─ Created function framework-function successful\n  DEBUG ─ Setting tags for function framework-function\n  DEBUG ─ Creating trigger for function framework-function\n  DEBUG ─ Deployed function framework-function successful\n  DEBUG ─ Starting API-Gateway deployment with name ap-guangzhou-apigateway in the ap-guangzhou region\n  DEBUG ─ Using last time deploy service id service-jflj67ms\n  DEBUG ─ Updating service with serviceId service-jflj67ms.\n  DEBUG ─ Endpoint ANY / already exists with id api-7hwektu6.\n  DEBUG ─ Updating api with api id api-7hwektu6.\n  DEBUG ─ Service with id api-7hwektu6 updated.\n  DEBUG ─ Deploying service with id service-jflj67ms.\n  DEBUG ─ Deployment successful for the api named ap-guangzhou-apigateway in the ap-guangzhou region.\n\n  myFramework:\n    functionName:        framework-function\n    cns:                 (empty array)\n    region:              ap-guangzhou\n    apiGatewayServiceId: service-jflj67ms\n    url:                 https://service-jflj67ms-1251556596.gz.apigw.tencentcs.com/release/\n\n  17s › myFramework › done\n```\n\n\u003e Notice: `sls` is short for `serverless` command.\n\n\u0026nbsp;\n\n### 5. Remove\n\n```bash\n$ sls remove --debug\n\n  DEBUG ─ Flushing template state and removing all components.\n  DEBUG ─ Removed function framework-function successful\n  DEBUG ─ Removing any previously deployed API. api-7hwektu6\n  DEBUG ─ Removing any previously deployed service. service-jflj67ms\n\n  7s › myFramework › done\n```\n\n### More Components\n\nCheckout the [Serverless Components](https://github.com/serverless/components) repo for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverless-components%2Ftencent-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserverless-components%2Ftencent-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverless-components%2Ftencent-framework/lists"}