{"id":13498619,"url":"https://github.com/serverless-components/tencent-fullstack","last_synced_at":"2025-07-30T20:04:52.810Z","repository":{"id":97839461,"uuid":"255875362","full_name":"serverless-components/tencent-fullstack","owner":"serverless-components","description":"Full stack application template using multiple components","archived":false,"fork":false,"pushed_at":"2021-01-07T06:51:18.000Z","size":3076,"stargazers_count":16,"open_issues_count":0,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-24T15:54:28.989Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","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-components.png","metadata":{"files":{"readme":"README.en.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-04-15T09:57:55.000Z","updated_at":"2023-05-23T00:46:03.000Z","dependencies_parsed_at":"2024-01-18T23:04:45.845Z","dependency_job_id":"43fe83b5-ebac-4930-ab39-bb260aa6ae3d","html_url":"https://github.com/serverless-components/tencent-fullstack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/serverless-components/tencent-fullstack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-components%2Ftencent-fullstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-components%2Ftencent-fullstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-components%2Ftencent-fullstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-components%2Ftencent-fullstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serverless-components","download_url":"https://codeload.github.com/serverless-components/tencent-fullstack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-components%2Ftencent-fullstack/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267930612,"owners_count":24167475,"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-30T02:00:09.044Z","response_time":70,"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-07-31T21:00:38.382Z","updated_at":"2025-07-30T20:04:52.737Z","avatar_url":"https://github.com/serverless-components.png","language":"Vue","readme":"！！！This project had been moved to https://github.com/serverless-components/tencent-examples/tree/master/fullstack\n\n# fullstack-serverless-db\n\nThis is a template of serverless fullstack application. It aims to be the\nsimplest possible way to build a serverless fullstack application, including a\nVue.js application on the front-end bundled with Parcel and back-end API using\npostgresql.\n\nThis template includes:\n\n- **Serverless RESTful API**: Using\n  [@serverless/tencent-express](https://github.com/serverless-components/tencent-express/tree/v2)\n  component, it contains a Servelress Cloud Function and a single API Gateway\n  endpoint.\n\n- **Serverless website using Vue.js**:\n  [@serverless/tencent-website](https://github.com/serverless-components/tencent-website/tree/v2),\n  it deploys all static files to Cloud Object Storage.\n\n- **Serverless Postgresql**:\n  [@serverless/tencent-postgresql](https://github.com/serverless-components/tencent-postgresql/tree/v2),\n  it auto create a postgresql database for backend using.\n\n\u0026nbsp;\n\n1. [Prepare](#Prepare)\n2. [Download](#Download)\n3. [Bootstrap](#Bootstrap)\n4. [Deploy](#Deploy)\n5. [Development](#Development)\n\n\u0026nbsp;\n\n### Prepare\n\nBefore all below steps, you should install\n[Serverless Framework](https://www.github.com/serverless/serverless) globally:\n\n```bash\n$ npm i serverless -g\n```\n\n### Download\n\nSeverless cli is very convenient, it can download templates in any github\nproject which should contain `serverless.yml` file.\n\n```bash\n$ serverless create --template-url https://github.com/serverless-components/tencent-fullstack\n```\n\n### Bootstrap\n\nCopy `.env.example` file to `.env` in project root:\n\nAdd the access keys of a\n[Tencent CAM Role](https://console.cloud.tencent.com/cam/capi) with\n`AdministratorAccess` in the `.env` file, like below:\n\n```dotenv\n# .env\nTENCENT_SECRET_ID=xxx\nTENCENT_SECRET_KEY=xxx\n\n# change to your requirement\nREGION=ap-guangzhou\nZONE=ap-guangzhou-2\nVPC_ID=vpc-xxx\nSUBNET_ID=subnet-xxx\n```\n\nInstall the NPM dependencies:\n\n```bash\n$ npm run bootstrap\n```\n\n### Support commands\n\nDeploy:\n\n```bash\n$ sls deploy --all\n\nserverless ⚡ framework\n\nserverlessVpc:\n  region:     ap-guangzhou\n  zone:       ap-guangzhou-2\n  vpcId:      vpc-xxx\n  vpcName:    serverless\n  subnetId:   subnet-xxx\n  subnetName: serverless\n\nfullstackDB:\n  region:         ap-guangzhou\n  zone:           ap-guangzhou-2\n  vpcConfig:\n    subnetId: subnet-100000\n    vpcId:    vpc-1000000\n  dBInstanceName: fullstackDB\n  dBInstanceId:   postgres-100000\n  private:\n    connectionString: postgresql://tencentdb_100000xxxxxxxxxxxxx@172.16.250.15:5432/tencentdb_1000000\n    host:             172.16.250.15\n    port:             5432\n    user:             tencentdb_100000\n    password:         xxxxxxxx\n    dbname:           tencentdb_100000\n\nfullstack-api:\n  region: ap-guangzhou\n  apigw:\n    serviceId:   service-100000\n    subDomain:   service-100000-123456789.gz.apigw.tencentcs.com\n    environment: release\n    url:         https://service-100000-123456789.gz.apigw.tencentcs.com/release/\n  scf:\n    functionName: fullstack-api\n    runtime:      Nodejs10.15\n    namespace:    default\n\nfullstack-frontend:\n  website: https://fullstack-serverless-db-123456789.cos-website.ap-guangzhou.myqcloud.com\n\n50s › tencent-fullstack › Success\n```\n\nGet deploy info:\n\n```bash\n$ npm run info\n\u003e tencent-fullstack@1.1.0 info /root/tencent-fullstack\n\u003e npm run info:vpc \u0026\u0026 npm run info:db \u0026\u0026 npm run info:api \u0026\u0026 npm run info:frontend\n\n\u003e tencent-fullstack@1.1.0 info:vpc /Users/yugasun/Desktop/Develop/@yugasun/tencent-fullstack\n\u003e sls info --target=./vpc\n\n\nserverless ⚡ framework\n\nStatus:       active\nLast Action:  deploy (5 minutes ago)\nDeployments:  1\n\nregion:     ap-guangzhou\nzone:       ap-guangzhou-2\nvpcId:      vpc-xxx\nvpcName:    serverless\nsubnetId:   subnet-xxx\nsubnetName: serverless\n\nserverlessVpc › Info successfully loaded\n\n\u003e tencent-fullstack@1.1.0 info:db /root/tencent-fullstack\n\u003e sls info --target=./db\n\n\nserverless ⚡ framework\n\nStatus:       active\nLast Action:  deploy (3 minutes ago)\nDeployments:  18\n\nregion:         ap-guangzhou\nzone:           ap-guangzhou-2\nvpcConfig:\n  subnetId: subnet-100000\n  vpcId:    vpc-1000000\ndBInstanceName: fullstackDB\ndBInstanceId:   postgres-100000\nprivate:\n  connectionString: postgresql://tencentdb_100000xxxxxxxxxxxxxxxxxxx@172.16.250.15:5432/tencentdb_100000\n  host:             172.16.250.15\n  port:             5432\n  user:             tencentdb_1000000\n  password:         xxxxxxxxx\n  dbname:           tencentdb_1000000\n\nfullstackDB › Info successfully loaded\n\n\n\u003e tencent-fullstack@1.1.0 info:api /root/tencent-fullstack\n\u003e sls info --target=./api\n\n\nserverless ⚡ framework\n\nStatus:       active\nLast Action:  deploy (2 minutes ago)\nDeployments:  10\n\nregion: ap-guangzhou\napigw:\n  serviceId:   service-1000000\n  subDomain:   service-1000000-123456789.gz.apigw.tencentcs.com\n  environment: release\n  url:         https://service-100000-123456789.gz.apigw.tencentcs.com/release/\nscf:\n  functionName: fullstack-api\n  runtime:      Nodejs10.15\n  namespace:    default\n\nfullstack-api › Info successfully loaded\n\n\n\u003e tencent-fullstack@1.1.0 info:frontend /root/tencent-fullstack\n\u003e sls info --target=./frontend\n\n\nserverless ⚡ framework\n\nStatus:       active\nLast Action:  deploy (2 minutes ago)\nDeployments:  9\n\nwebsite: https://fullstack-serverless-db-123456789.cos-website.ap-guangzhou.myqcloud.com\n\nfullstack-frontend › Info successfully loaded\n```\n\nRemove:\n\n```bash\n$ sls remove --all\n\nserverless ⚡ framework\n\n38s › tencent-fullstack › Success\n```\n\n### License\n\nMIT\n\n```\n\n```\n","funding_links":[],"categories":["开发模板"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverless-components%2Ftencent-fullstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserverless-components%2Ftencent-fullstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverless-components%2Ftencent-fullstack/lists"}