{"id":18328376,"url":"https://github.com/thorstenhans/spin-to-slack","last_synced_at":"2025-04-09T16:55:03.430Z","repository":{"id":143345199,"uuid":"579011546","full_name":"ThorstenHans/spin-to-slack","owner":"ThorstenHans","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-16T14:01:23.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-15T10:17:34.124Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/ThorstenHans.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":"2022-12-16T12:44:48.000Z","updated_at":"2023-07-02T03:37:17.000Z","dependencies_parsed_at":"2023-06-09T15:45:44.756Z","dependency_job_id":null,"html_url":"https://github.com/ThorstenHans/spin-to-slack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThorstenHans%2Fspin-to-slack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThorstenHans%2Fspin-to-slack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThorstenHans%2Fspin-to-slack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThorstenHans%2Fspin-to-slack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThorstenHans","download_url":"https://codeload.github.com/ThorstenHans/spin-to-slack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248074266,"owners_count":21043480,"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-11-05T19:13:56.090Z","updated_at":"2025-04-09T16:55:03.405Z","avatar_url":"https://github.com/ThorstenHans.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spin-to-Slack\n\n`Spin-to-Slack` is a sample application demonstrating how to use configuration data in Fermyon Spin. For detailed walk-through consider reading the corresponding blog post at: [https://www.thorsten-hans.com/master-configuration-data-in-fermyon-spin](https://www.thorsten-hans.com/master-configuration-data-in-fermyon-spin).\n\n## How to run Spin-to-Slack\n\nEither `Docker` is required (to run HashiCorp Vault) or you must ensure your Spin application can access an instance of HashiCorp Vault that runs somewhere else.\n\n### HashiCorp Vault\n\n```bash\ndocker run -d -e VAULT_DEV_ROOT_TOKEN_ID=foobar \\\n -e VAULT_SERVER=\"http://127.0.0.1:8200\" \\\n -p 8200:8200 vault\n\n# Install vault CLI (macOS shown here with Homebrew)\nbrew install vault\n\n# Set Vault URL and token as env vars\n# Alternatively, you can provide the token when using vault CLI\nexport VAULT_ADDR='http://0.0.0.0:8200'\nexport VAULT_TOKEN=foobar\n\n# Store slack_webhook_url in vault\nvault kv put secret/slack_webhook_url value=\"YOUR slack webhook url\"\n```\n\n### Run Spin-to-Slack\n\n```bash\nexport SPIN_APP_CHANNEL=\"#blog\"\nexport SPIN_APP_IS_MARKDOWN=\"true\"\n\n# 3. Start the Spin application\nspin build --up --follow-all --runtime-config-file vault.toml\n```\n\n## Send HTTP Post requests to the Spin-to-Slack\n\n```bash\ncurl -X POST --json '{ \"message\": \"Hello! This is Spin *speaking*\\r\\n:beverage_box:\" }' http://localhost:3000\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthorstenhans%2Fspin-to-slack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthorstenhans%2Fspin-to-slack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthorstenhans%2Fspin-to-slack/lists"}