diff --git a/CLAUDE.md b/CLAUDE.md index cd7fb0b2c..8eea6d475 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -80,7 +80,7 @@ Must follow the established template structure: ```markdown # Sample Title -[![1-click-deploy](https://raw.githubusercontent.com/DefangLabs/defang-assets/main/Logos/Buttons/SVG/deploy-with-defang.svg)](https://portal.defang.dev/redirect?url=https%3A%2F%2Fgithub.com%2Fnew%3Ftemplate_name%3Dsample--template%26template_owner%3DDefangSamples) +[![1-click-deploy](https://raw.githubusercontent.com/DefangLabs/defang-assets/main/Logos/Buttons/SVG/deploy-with-defang.svg)](https://portal.defang.io/sample/) Description of what this sample does. @@ -124,7 +124,7 @@ Languages: python, nodejs, golang, etc. - `Tags:` -- Comma-separated; frameworks, tools, categories (NOT programming languages) - `Languages:` -- Comma-separated programming languages/runtimes -The 1-click deploy badge URL must use `sample--template` as the `template_name` (this is auto-managed by `template-manager.js`). +The 1-click deploy badge must link to `https://portal.defang.io/sample/` (where `` is the sample's directory name). This opens the Defang Portal deploy flow (create project + stack + clone) instead of jumping straight to GitHub's template-creation page. ### 3. Source code directory (required) diff --git a/samples/agentic-autogen/README.md b/samples/agentic-autogen/README.md index c9b15eb8f..c41cc2681 100644 --- a/samples/agentic-autogen/README.md +++ b/samples/agentic-autogen/README.md @@ -1,6 +1,6 @@ # Agentic Autogen -[![1-click-deploy](https://raw.githubusercontent.com/DefangLabs/defang-assets/main/Logos/Buttons/SVG/deploy-with-defang.svg)](https://portal.defang.dev/redirect?url=https%3A%2F%2Fgithub.com%2Fnew%3Ftemplate_name%3Dsample-agentic-autogen-template%26template_owner%3DDefangSamples) +[![1-click-deploy](https://raw.githubusercontent.com/DefangLabs/defang-assets/main/Logos/Buttons/SVG/deploy-with-defang.svg)](https://portal.defang.io/sample/agentic-autogen) This sample shows an agentic Autogen application using Mistral and FastAPI, deployed with Defang. For demonstration purposes, it will require a [Mistral AI](https://mistral.ai/) API key (see [Configuration](#configuration) for more details). However, you are free to modify it to use a different LLM, say the [Defang OpenAI Access Gateway](https://github.com/DefangLabs/openai-access-gateway/) service, as an alternative. Note that the Vite React frontend is served through the FastAPI backend so that they can be treated as one service in production. diff --git a/samples/agentic-langgraph/README.md b/samples/agentic-langgraph/README.md index 38904eb3c..ec71f5210 100644 --- a/samples/agentic-langgraph/README.md +++ b/samples/agentic-langgraph/README.md @@ -1,6 +1,6 @@ # Agentic LangGraph -[![1-click-deploy](https://raw.githubusercontent.com/DefangLabs/defang-assets/main/Logos/Buttons/SVG/deploy-with-defang.svg)](https://portal.defang.dev/redirect?url=https%3A%2F%2Fgithub.com%2Fnew%3Ftemplate_name%3Dsample-agentic-langgraph-template%26template_owner%3DDefangSamples) +[![1-click-deploy](https://raw.githubusercontent.com/DefangLabs/defang-assets/main/Logos/Buttons/SVG/deploy-with-defang.svg)](https://portal.defang.io/sample/agentic-langgraph) This sample demonstrates a LangGraph Agent application deployed with Defang. You can customize the agent's tools as needed. For example, it includes a Tavily Search tool for performing search queries, which requires a `TAVILY_API_KEY` (see [Configuration](#configuration) for setup details). diff --git a/samples/agentic-strands/README.md b/samples/agentic-strands/README.md index 72304594d..a1d8bfe43 100644 --- a/samples/agentic-strands/README.md +++ b/samples/agentic-strands/README.md @@ -1,6 +1,6 @@ # Agentic Strands -[![1-click-deploy](https://raw.githubusercontent.com/DefangLabs/defang-assets/main/Logos/Buttons/SVG/deploy-with-defang.svg)](https://portal.defang.dev/redirect?url=https%3A%2F%2Fgithub.com%2Fnew%3Ftemplate_name%3Dsample-agentic-strands-template%26template_owner%3DDefangSamples) +[![1-click-deploy](https://raw.githubusercontent.com/DefangLabs/defang-assets/main/Logos/Buttons/SVG/deploy-with-defang.svg)](https://portal.defang.io/sample/agentic-strands) This sample demonstrates a Strands Agent application, deployed with Defang. This [Strands](https://strandsagents.com/latest/) Agent can use tools, and is compatible with the [Defang OpenAI Access Gateway](https://github.com/DefangLabs/openai-access-gateway/). diff --git a/samples/angular-express/README.md b/samples/angular-express/README.md index 3c2471c0e..0c3886702 100644 --- a/samples/angular-express/README.md +++ b/samples/angular-express/README.md @@ -1,6 +1,6 @@ # Angular & Node.js -[![1-click-deploy](https://raw.githubusercontent.com/DefangLabs/defang-assets/main/Logos/Buttons/SVG/deploy-with-defang.svg)](https://portal.defang.dev/redirect?url=https%3A%2F%2Fgithub.com%2Fnew%3Ftemplate_name%3Dsample-angular-express-template%26template_owner%3DDefangSamples) +[![1-click-deploy](https://raw.githubusercontent.com/DefangLabs/defang-assets/main/Logos/Buttons/SVG/deploy-with-defang.svg)](https://portal.defang.io/sample/angular-express) This sample demonstrates how to deploy a full-stack Angular and Node.js application with Defang. It uses Socket.IO for real-time communication. The Docker setup ensures the app can be easily built and deployed. diff --git a/samples/arduino-wifi/README.md b/samples/arduino-wifi/README.md index 3a14ecd9d..657515212 100644 --- a/samples/arduino-wifi/README.md +++ b/samples/arduino-wifi/README.md @@ -1,6 +1,6 @@ # Arduino Flask Wifi Server -[![1-click-deploy](https://raw.githubusercontent.com/DefangLabs/defang-assets/main/Logos/Buttons/SVG/deploy-with-defang.svg)](https://portal.defang.dev/redirect?url=https%3A%2F%2Fgithub.com%2Fnew%3Ftemplate_name%3Dsample--template%26template_owner%3DDefangSamples) +[![1-click-deploy](https://raw.githubusercontent.com/DefangLabs/defang-assets/main/Logos/Buttons/SVG/deploy-with-defang.svg)](https://portal.defang.io/sample/) This is a sample that shows the rough structure of an actual Defang sample. This top paragraph should give a bit of context about the project and what it does. The rest of the README should be a guide on how to use the sample. #REMOVE_ME_AFTER_EDITING