{"id":15169991,"url":"https://github.com/lreimer/golem-cloud-demos","last_synced_at":"2026-02-04T14:33:58.195Z","repository":{"id":187470448,"uuid":"676948448","full_name":"lreimer/golem-cloud-demos","owner":"lreimer","description":"Demo repository for different Golem Cloud WASI applications in different languages.","archived":false,"fork":false,"pushed_at":"2023-08-10T12:48:52.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-05T15:02:15.439Z","etag":null,"topics":["cloud","golang","golem","rust-lang","wasi","wasm","web-assembly"],"latest_commit_sha":null,"homepage":"","language":"Go","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/lreimer.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}},"created_at":"2023-08-10T11:37:11.000Z","updated_at":"2023-08-10T12:48:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0fd8e9c-9a60-4b3b-af42-bde28eed3ad3","html_url":"https://github.com/lreimer/golem-cloud-demos","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"c4e74a9c45c50a33c23ba3bda0b53858ebcada0d"},"previous_names":["lreimer/golem-cloud-demos"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lreimer%2Fgolem-cloud-demos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lreimer%2Fgolem-cloud-demos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lreimer%2Fgolem-cloud-demos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lreimer%2Fgolem-cloud-demos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lreimer","download_url":"https://codeload.github.com/lreimer/golem-cloud-demos/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253995204,"owners_count":21996620,"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":["cloud","golang","golem","rust-lang","wasi","wasm","web-assembly"],"created_at":"2024-09-27T07:44:24.706Z","updated_at":"2026-02-04T14:33:53.169Z","avatar_url":"https://github.com/lreimer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Golem Cloud Demos\n\nDemo repository for different Golem Cloud WASI applications in different languages.\n\n## Rust Shopping Cart Demo\n\n```bash\n# make sure you have setup your Rust environment as described in \n# - https://www.golem.cloud/learn/common-tooling\n# - https://www.golem.cloud/learn/rust\n\ngolem new --template rust-shopping-cart --component-name shopping-cart\ncd shopping-cart\n\n# build and install WASI component\ncargo component build --release\ncd target/wasm32-wasi/release/\ngolem component add --component-name shopping-cart lib.wasm\ngolem instance add --instance-name shopping-cart-1 --component-name shopping-cart\n\n# invoke the instance and its API functions\ngolem instance invoke-and-await \\\n    --component-name=shopping-cart \\\n    --instance-name=shopping-cart-1 \\\n    --function=golem:component/api/initialize-cart \\\n    --parameters='[\"test-user\"]'\n\ngolem instance invoke-and-await \\\n    --component-name=shopping-cart \\\n    --instance-name=shopping-cart-1 \\\n    --function=golem:component/api/get-cart-contents \\\n    --parameters='[]'\n\ngolem instance invoke-and-await \\\n    --component-name=shopping-cart \\\n    --instance-name=shopping-cart-1 \\\n    --function=golem:component/api/add-item \\\n    --parameters='[{\"product-id\": \"1234abc\", \"name\": \"test-item\", \"price\": 9.99, \"quantity\": 42}]'\n\ngolem instance invoke-and-await \\\n    --component-name=shopping-cart \\\n    --instance-name=shopping-cart-1 \\\n    --function=golem:component/api/get-cart-contents \\\n    --parameters='[]'\n```\n\n## Go HTTP Demo\n\n```bash\n# make sure you have setup your Tiny Go environment as described in \n# - https://www.golem.cloud/learn/common-tooling\n# - https://www.golem.cloud/learn/go\n\ngolem new --template go-actor-full --component-name go-golem-demo\ncd go-golem-demo\n\n# build and install WASI component\nmake build\ngolem component add --component-name go-golem-demo go_golem_demo.wasm\ngolem instance add --instance-name go-golem-demo-1 --component-name go-golem-demo\n\n# repeat the following two commands to add numbers and get results\ngolem instance invoke-and-await \\\n    --component-name=go-golem-demo \\\n    --instance-name=go-golem-demo-1 \\\n    --function=golem:component/api/add \\\n    --parameters='[42]'\n\ngolem instance invoke-and-await \\\n    --component-name=go-golem-demo \\\n    --instance-name=go-golem-demo-1 \\\n    --function=golem:component/api/get \\\n    --parameters='[]'\n\n```\n\n## Maintainer\n \nM.-Leander Reimer (@lreimer), \u003cmario-leander.reimer@qaware.de\u003e\n\n## License\n\nThis software is provided under the MIT open source license, read\nthe `LICENSE` file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flreimer%2Fgolem-cloud-demos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flreimer%2Fgolem-cloud-demos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flreimer%2Fgolem-cloud-demos/lists"}