{"id":21075545,"url":"https://github.com/ribbinpo/functiongraph-node-poc","last_synced_at":"2025-06-12T03:09:23.353Z","repository":{"id":231260821,"uuid":"781299235","full_name":"ribbinpo/functiongraph-node-poc","owner":"ribbinpo","description":"Template: expressjs for HTTP format on FunctionGraph (Huawei Cloud)","archived":false,"fork":false,"pushed_at":"2024-09-02T09:38:58.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T03:44:44.519Z","etag":null,"topics":["cloudfunctions","express-validator","expressjs","makefile","template"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ribbinpo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-04-03T05:52:52.000Z","updated_at":"2024-09-02T09:39:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"46d31eb9-3a95-4483-86fb-54861da554d9","html_url":"https://github.com/ribbinpo/functiongraph-node-poc","commit_stats":null,"previous_names":["ribbinpo/functiongraph-node-poc"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/ribbinpo/functiongraph-node-poc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribbinpo%2Ffunctiongraph-node-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribbinpo%2Ffunctiongraph-node-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribbinpo%2Ffunctiongraph-node-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribbinpo%2Ffunctiongraph-node-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ribbinpo","download_url":"https://codeload.github.com/ribbinpo/functiongraph-node-poc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribbinpo%2Ffunctiongraph-node-poc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259388078,"owners_count":22849754,"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":["cloudfunctions","express-validator","expressjs","makefile","template"],"created_at":"2024-11-19T19:23:39.618Z","updated_at":"2025-06-12T03:09:23.307Z","avatar_url":"https://github.com/ribbinpo.png","language":"TypeScript","readme":"# Huawei CloudFunction POC with FunctionGraph\nThis repository contains a Proof of Concept (POC) for implementing cloud functions in Huawei Cloud using the FunctionGraph feature.\nThe project is structured with Node.js, Express.js, and TypeScript. Each function is developed separately within the `functions/` directory,\nwhile shared code, configurations, and adapters reside in the `shares/` directory. Additionally, a Makefile is provided to facilitate building cloud function, followed by compressing them into a zip file for upload to FunctionGraph or build to docker image for push to container registry then sync with FunctionGraph.\n\n## Project Structure\n```bash\n.\n├── functions/        # Directory for individual cloud functions\n│   ├── function1/    # Function 1\n│   ├── function2/    # Function 2\n│   └── ...           # Other functions\n├── shares/           # Shared code, config, adapter\n├── index.ts          # Run every module to the monolith\n├── Makefile          # Makefile for building and compressing functions\n└── README.md         # This file\n```\n## Getting Started\nTo deploy functions to Huawei CloudFunction using FunctionGraph, follow these steps:\n\nInstall dependencies:\n\n```sh\nnpm install\n```\n\nInit new module\n\n```sh\nmake init function=[function_name]\n```\nCreate a new module to `functions/` using `templates/` module to a template. (so you can modify your template in this module)\n\nBuild and compress functions:\n\n```sh\nmake build function=[function_name]\n```\nOnce the build process is complete, upload the generated zip files to FunctionGraph using the Huawei Cloud Console.\n\n```sh\nmake build-all\n```\nIt similar with `make build` but this command will build every module in `functions/` and zip to `out/` folder.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fribbinpo%2Ffunctiongraph-node-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fribbinpo%2Ffunctiongraph-node-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fribbinpo%2Ffunctiongraph-node-poc/lists"}