{"id":13498573,"url":"https://github.com/serverless-plus/tencent-framework","last_synced_at":"2025-03-29T01:32:05.505Z","repository":{"id":54741997,"uuid":"307568598","full_name":"serverless-plus/tencent-framework","owner":"serverless-plus","description":"Serverless Framework Components for Tencent Cloud","archived":false,"fork":false,"pushed_at":"2021-02-01T11:27:31.000Z","size":534,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-31T16:37:30.339Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serverless-plus.png","metadata":{"files":{"readme":"README.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-10-27T02:54:56.000Z","updated_at":"2021-02-09T03:38:03.000Z","dependencies_parsed_at":"2022-08-14T01:20:59.828Z","dependency_job_id":null,"html_url":"https://github.com/serverless-plus/tencent-framework","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-plus%2Ftencent-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-plus%2Ftencent-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-plus%2Ftencent-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-plus%2Ftencent-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serverless-plus","download_url":"https://codeload.github.com/serverless-plus/tencent-framework/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246125949,"owners_count":20727496,"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","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-07-31T21:00:36.994Z","updated_at":"2025-03-29T01:32:05.144Z","avatar_url":"https://github.com/serverless-plus.png","language":"Python","readme":"# Serverless Framework Component\n\n[![Build Status](https://github.com/serverless-plus/tencent-framework/workflows/Test/badge.svg)](https://github.com/serverless-plus/tencent-framework/actions?query=workflow:Test)\n\n\u003e 此组件非腾讯云官方组件，很多特性是实验性的。如果有相关疑问，请提交 issue 或者 pr。\n\nServerless Web 框架组件，可以方便将传统 Web 框架部署到腾讯云 Serverless 架构上，支持目前流行的所有 Web 框架。\n\n目前支持框架：\n\n- [x] Express.js\n- [x] Koa.js\n- [x] Egg.js\n- [x] Next.js\n- [x] Nuxt.js\n- [x] Nest.js\n- [x] Laravel\n- [x] ThinkPHP\n- [x] Flask\n- [x] Django\n\n\u003e 支持无改造部署 Egg.js 项目，需要项目依赖 [egg-core](https://github.com/eggjs/egg-core) \u003e= 4.19.0\n\n## 愿景 🚀🚀🚀\n\n由于现存 Web 框架组件太多了，配置文档比较零散，维护起来比较困难，但是 Web 框架组件的核心逻辑基本一致，为此作为`第三方开发者`开发了本适配所有 Web 框架的组件。而且 yaml `配置`也进行了`重新设计`，`不兼容其他独立的框架组件配置`。\n\n希望因此能够帮助到广大爱好 Serverless Components 的开发者。\n\n## 示例项目\n\n[Examples](./examples)\n\n## 安装\n\n通过 npm 安装最新版本的 Serverless Framework\n\n```bash\n$ npm install -g serverless\n```\n\n## 初始化项目\n\n通过如下命令和模板链接，快速创建一个 Express 应用：\n\n```bash\n$ serverless init express-starter --name example\n$ cd example\n```\n\n## 配置\n\n以下是 Express 框架的 `serverless.yml`配置示例：\n\n```yml\napp: serverless\nstage: dev\ncomponent: framework\nname: express-demo\n\ninputs:\n  framework: express\n  src:\n    src: ./\n    exclude:\n      - .env\n  region: ap-guangzhou\n  faas:\n    name: express-demo\n  apigw:\n    protocols:\n      - http\n      - https\n    environment: release\n```\n\n[全量配置](./docs/configure.md)\n\n\u003e 注意：`inputs` 中 `framework` 参数是必须的，组件将根据该参数来对 Web 框架项目进行自动化部署，目前 `framework` 支持 Web 框架有 `express`、`koa`、`egg`、`next`、`nuxt`、`nest`、`laravel`、`thinkphp`、`flask`、`django`。\n\n## 可视化配置\n\n新规范支持可视化配置，启动前先安装 [@slsplus/cli](https://github.com/serverless-plus/cli) 命令行工具：\n\n```bash\n$ npm i @slsplus/cli -g\n```\n\n启动可视化配置：\n\n```bash\n$ sp init -u\n```\n\n如下图所示：\n\n![UI Config](./demo/ui-config.jpg)\n\n## 部署\n\n```bash\n$ sls deploy\n```\n\n## License\n\nMIT License\n\nCopyright (c) 2020 Serverless Plus\n","funding_links":[],"categories":["组件"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverless-plus%2Ftencent-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserverless-plus%2Ftencent-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverless-plus%2Ftencent-framework/lists"}