{"id":21970418,"url":"https://github.com/nicolasschwarzer/fc-demo-service","last_synced_at":"2026-04-17T17:32:26.103Z","repository":{"id":94977389,"uuid":"184202549","full_name":"NicolasSchwarzer/fc-demo-service","owner":"NicolasSchwarzer","description":"Aliyun function compute demo service.","archived":false,"fork":false,"pushed_at":"2019-05-30T06:42:58.000Z","size":68,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T22:43:10.807Z","etag":null,"topics":["aliyun","faas","function-compute","lerna","nodejs","serverless","shell"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/NicolasSchwarzer.png","metadata":{"files":{"readme":"README.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-30T06:12:43.000Z","updated_at":"2019-05-30T06:41:54.000Z","dependencies_parsed_at":"2023-03-22T00:04:20.481Z","dependency_job_id":null,"html_url":"https://github.com/NicolasSchwarzer/fc-demo-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NicolasSchwarzer/fc-demo-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicolasSchwarzer%2Ffc-demo-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicolasSchwarzer%2Ffc-demo-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicolasSchwarzer%2Ffc-demo-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicolasSchwarzer%2Ffc-demo-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NicolasSchwarzer","download_url":"https://codeload.github.com/NicolasSchwarzer/fc-demo-service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicolasSchwarzer%2Ffc-demo-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31938710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["aliyun","faas","function-compute","lerna","nodejs","serverless","shell"],"created_at":"2024-11-29T14:39:30.999Z","updated_at":"2026-04-17T17:32:26.085Z","avatar_url":"https://github.com/NicolasSchwarzer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fc-demo-service\n\nAliyun function compute demo service.\n\n## Introduction\n\n- What is aliyun function compute: [documentation](https://help.aliyun.com/document_detail/52895.html)\n- Get played with [aliyun function compute console](https://fc.console.aliyun.com/service/cn-hangzhou)\n\n## Install\n\nFunction compute is actually based on container technology, and if we want to simulate production environment, we need to install [docker](https://docs.docker.com/install) locally, **fcli、fun \u0026 web ide also depends on docker**.\n\nUse your own [aliyun docker registry](https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors) to speed up image installation.\n\nInstall aliyun function compute command line tool: [fcli](https://help.aliyun.com/document_detail/52995.html).\n\nInstall aliyun function compute deploy and locally running tool: [fun](https://help.aliyun.com/document_detail/64204.html)\n\nInstall aliyun function compute web ide: [Web IDE](https://help.aliyun.com/document_detail/99243.html)\n\nAnd install project dependencies:\n\n```shell\n$ npm i\n$ npm run bootstrap\n```\n\n## Play with fcli\n\nIn fcli shell, we can do the same thing as on web console, e.g. create, update, delete services and functions, invoke functions... We can also simulate production environment locally, but can not test run functions locally.\n\n**We suggest use fcli to read and invoke. For creation, deploy and local test running, it's better to use fun. And web ide has better ui interface for function invoke, which does not support local test running yet.**\n\n### Config\n\n**fcli \u0026 fun use the same config file.**\n\n```shell\n$ fcli config\n```\n\n### Start\n\n```shell\n$ npm start\n```\n\nNow we entered into fcli shell environment, here's the [documentation](https://help.aliyun.com/document_detail/52995.html) of how to play.\n\nSimulate production environment:\n\n```shell\n# In fcli shell\n$ sbox -d ${YourFunctionDirectory} -t nodejs8\n\n# e.g. hello-world function\n$ sbox -d hello-world -t nodejs8\n```\n\n### Publish\n\nIn fcli shell:\n\n- Use `mks` command to create service, use `mkf` command to create function\n- Use `ups` command to update service, use `upf` command to update function\n\n### Run\n\nIn fcli shell:\n\n- Use `invk` command to run function\n\n## Play with fun\n\n- [How to use fun](https://help.aliyun.com/document_detail/64204.html)\n- `template.yml` is the config of services and functions this project includes, which will be used by fun\n- `event.json` is the test event data for local running\n- `.funignore` indicates which files should be ignored while deploying\n\n### Config\n\n**fcli \u0026 fun use the same config file. We suggest use fun to develop \u0026 deploy.**\n\n```shell\n$ fun config\n```\n\n### Run locally\n\n```shell\n$ npm run dev\n```\n\n### Publish\n\n```shell\n$ npm run release\n```\n\n## Play with web ide\n\n**Web ide does not support local running yet. We suggest use it to run on-line functions. Also config by fcli or fun is required.**\n\n- [Click here to access web ide](https://ide.fc.aliyun.com/cn-hangzhou)\n- [How to install and use web ide](https://help.aliyun.com/document_detail/99243.html)\n\n### Start local host for IDE\n\n```shell\n$ ide start\n```\n\n### Stop local host\n\n```shell\n$ ide stop\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolasschwarzer%2Ffc-demo-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicolasschwarzer%2Ffc-demo-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolasschwarzer%2Ffc-demo-service/lists"}