<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Simon Auer on Medium]]></title>
        <description><![CDATA[Stories by Simon Auer on Medium]]></description>
        <link>https://medium.com/@simonauer?source=rss-b88835c59a6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xZ29Vtgqiswc2AJNksoBuA.jpeg</url>
            <title>Stories by Simon Auer on Medium</title>
            <link>https://medium.com/@simonauer?source=rss-b88835c59a6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 11:35:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@simonauer/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ChatGPT AgentKit and ChatGPT App SDK — How do they work? Do they have potential?]]></title>
            <link>https://medium.com/swlh/chatgpt-agentkit-and-chatgpt-app-sdk-how-do-they-work-do-they-have-potential-f8f11f61ddef?source=rss-b88835c59a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8f11f61ddef</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[sdk]]></category>
            <dc:creator><![CDATA[Simon Auer]]></dc:creator>
            <pubDate>Mon, 13 Oct 2025 13:17:39 GMT</pubDate>
            <atom:updated>2025-10-13T13:24:37.718Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iJcuxdUXWXIHHd4r6jO8Ew.gif" /><figcaption>Chatgpt custom App for a sponsoring platform.</figcaption></figure><h3>ChatGPT AgentKit and ChatGPT App SDK — How do they work? Do they have potential?</h3><p>Artificial Intelligence has finally reached the stage where it’s no longer simply text creation — choreographing actions, workflows, and interactive digital experiences.</p><p>The new generation of OpenAI developer tech — <strong>ChatGPT AgentKit</strong> and the <strong>ChatGPT Apps SDK</strong> — represents a shift in paradigm.</p><p>For the first time we can do more than just let AIs scan our pages and decide whether they link or just take our information. We can soon provide ways of changing how our data is displayed and also use AI to improve our internal workflows.</p><p>This article covers what the latest tools presented just a few days ago by Openai (the company behind Chatgpt) from an experienced technical business implementation point to see what this means for organizations and developers — and, more importantly, where we believe there’s the most potential, implicit danger, and practical use cases for you and your product/company.</p><p>So let’s take a look at the two different tools, what they are, what they do and how you could use them.</p><p><strong>This article is part of a 2 part series:</strong></p><ul><li>Part 1: How do AgentKit &amp; Chatgpt Apps work and what’s their potential (this article here)</li><li><a href="https://simonauer.medium.com/the-future-of-integration-with-chatgpt-agentkit-chatgpt-apps-potential-use-cases-61ad3eb895e5">Part 2: What are potential use cases for AgentKit &amp; ChatGPT App SDK</a></li></ul><h3>ChatGPT AgentKit</h3><p>The <strong>ChatGPT AgentKit</strong> turns ChatGPT into a workflow engine. Think of it as <em>Zapier meets a smart assistant</em>.<br>It allows developers (and even users who know their way around tech) to connect ChatGPT to external data sources and APIs, so the assistant can perform meaningful actions rather than just giving answers.</p><h3>What Is It?</h3><p>Imagine you’re in a large company with fragmented knowledge across Google Drive, SharePoint, Confluence, internal chats, and email threads.<br>Instead of manually searching for information, an AgentKit-powered ChatGPT could:</p><ul><li>Search across internal documents for relevant information.</li><li>If no document exists, analyze your organization’s structure to determine who’s likely responsible.</li><li>Automatically generate an email or internal chat message requesting the missing information.</li></ul><p>It’s a pleasant blend of automation, reasoning, and human touch — atop the same ChatGPT interface people are already accustomed to.<br>This is of course just one example. Want more inspiration? Check our other dedicated article <a href="https://stackedit.io/app#"><strong>ChatGPT AgentBuilder and App SDK Case Studies and Idea Scenarios</strong></a> <strong>.</strong></p><p><strong>Or another example:</strong></p><p>What if you have a Support ticket system via email and want to make sure all support tickets are assigned to the correct project boards.<br>The workflow below would classify the incoming support requests, check if it is very urgent based on the mail content (if so -&gt; notify emergency team) and otherwise add it to the correct board, depending on whether we can find the correct board, client or fall back.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*01PfjYdwq5gXGCkz.png" /><figcaption>An agentkit workflow for support ticket classification</figcaption></figure><h4>What Works Well — and What Doesn’t</h4><p>What it works <strong>well for:</strong></p><ul><li>Information retrieval and summarization from disparate data silos.</li><li>Labor-intensive workflows — calendaring, summarizing, sending status reports.</li><li>Cross-functional collaboration with context and nuance at stake.</li></ul><h4><strong>Where it stumbles:</strong></h4><ul><li>Real-time system updates or workflows that require urgent precise timing.</li><li>Highly regulated data environments where every API call must be dealt with.</li><li>Routine data operations that still need backend infrastructure.</li><li>Workflows with a lot of requests will get expensive because of ChatGPT calls</li></ul><p>AgentKit’s strength is <em>availability</em> rather than <em>pure muscle</em>. It allows organizations to prototype and iterate workflows quickly without sitting around waiting for IT or developers to hard-code every step.</p><h3>Alternatives and Comparisons</h3><p>Before AgentKit, options such as <strong>Zapier</strong>, <strong>n8n</strong>, or <strong>Make (Integromat)</strong> dominated the automation scene. They’re great at connecting services but bad at reasoning.<br>AgentKit combines <em>automation with intelligence</em> — it doesn’t just “do” something; it understands <em>why</em> you’re doing it.</p><p>For instance, while Zapier can send an email when a file changes, ChatGPT AgentKit can first check whether that file is relevant to a current project or even summarize the update before sending it.</p><h3>Our Take: Cool, Accessible, but Not (Yet) a Revolution</h3><p>We think it’s incredible how OpenAI managed to popularize what Zapier and n8n popularized — but made it <em>easier</em> and more <em>context-aware</em>.<br>The promise isn’t in replacing what exists, but in <strong>improving</strong> it.<br>Businesses can now enable employees to <em>change and create workflows</em> without technical re-deployment — an innovation that liquidates digital landscapes.</p><p><strong>Drawbacks?</strong> There must be:</p><ul><li>It’s ChatGPT-only (even though built on the open <strong>Model Context Protocol (MCP)</strong>, which could allow future interoperability).</li><li>Offering access to sensitive information introduces risk and compliance overhead.</li><li>It’s in an early stage — get ready for shifting APIs and patchy coverage.</li></ul><p>However, for most organizations, AgentKit is the first reachable step toward a deeply conversational workflow system.</p><h3>ChatGPT Apps SDK</h3><p>Where AgentKit is all about <em>doing</em>, the <strong>ChatGPT Apps SDK</strong> is all about <em>showing</em>. The SDK allows developers to build interactive, mini web applications <em>in-line directly as part of ChatGPT conversations</em>.</p><h3>What It Is</h3><p>Apps turn dry text answers into rich, visual, and contextual experiences. Instead of reading text responses, users can interact with data tables, visual widgets, and custom components in the chat itself.</p><p>Nowadays, the SDK is rolling out gradually — with broader public availability soon to follow. OpenAI’s ambition is to see ChatGPT not only as a chat app, but an entire <em>app ecosystem</em>. <br>(very smart move of them … It’s how android and ios cemented in their positions as the branch standards, that no one can copy)</p><h3>A Live Example: Our “Donation Cause finder” Widget for impactory.org</h3><p>One of our in-house proof-of-concepts was a custom-built ChatGPT app for one of our clients <a href="https://impactory.org/">impactory.org</a>.<br>This project is a wonderful platform, that makes donating to good causes extremly simpel.</p><p>ChatGPT does not just give a generic canned text reply. Rather, it displays a <strong>custom widget</strong> with suggested causes for a selected category — pulled directly from our APIs.</p><p>But importantly: The api itself is abstracted behind our MCP server, so Openai only gets the final HTML widget, but not the API Request or raw data itself! This is very important, because you often don’t want to give away your data sources!!</p><p>It’s a small feature with dramatic ramifications: ChatGPT is a new <strong>distribution and interaction channel</strong> for content — one where you can dictate how your data is presented and linked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r30CeXFyiggzMILF.gif" /><figcaption>A chatgpt app example for impactory.org</figcaption></figure><h3>How Apps Are Triggered — Key Clarification</h3><p>Completely contrary to some misperceptions, <strong>apps cannot be triggered automatically without the user’s consent</strong>.</p><ul><li>Users must <strong>first turn on the app</strong> or give it a specific name.</li><li>ChatGPT may <strong>recommend</strong> suitable apps, but only if the user already has them and consents. (this will enfold the biggest potential later, hopefully)</li><li>All apps must display a permissions screen and privacy policy before divulging any data.</li><li>Access also varies by region and subscription level.</li></ul><p>Therefore, whereas ChatGPT can <em>recommend</em> applications based on intent, developers can’t completely dictate when their app appears.</p><h3>Why This Matters to Business</h3><p>Search engines are falling behind as humans use AI assistants for quick answers.<br>Websites are fighting to maintain organic traffic as people no longer click links — they get what they’re looking for <em>inside ChatGPT</em>.</p><p>With ChatGPT Apps, you can <em>regain visibility</em> by offering structured, interactive answers <em>within</em> the chatbot — and direct users straight to your site, app, or product for further interaction.</p><p>SEO 2.0:<br>You’re no longer optimizing content for Google’s crawler.<br>You’re optimizing <strong>triggers and actions</strong> for AI assistants.<br>You get to decide how your data appears, what users can do with it, and where the conversation will lead.</p><h3>Smart Tip: The “Trigger Strategy”</h3><p>You can’t prevent triggering altogether, but you can <strong>influence</strong> it.<br>Design your app to react to the most appropriate intents — those matching what users are most likely to ask ChatGPT about your business.<br>If people are likely to ask “best insurance for freelancers,” you can build an app to trigger when triggered by name or context, offering your calculator or comparison tool.</p><p>This is not just reactionary SEO — it’s <strong>proactive AI experience design</strong>.</p><h3>The Caveats</h3><ul><li>Users must activate applications and include user opt-in. Applications will not turn themselves on.</li><li>ChatGPT’s UI may limit how aggressively you can match users to outside pages.</li><li>APIs must be latency-designed, quota-ed, and stable.</li><li>The ecosystem remains in infancy stages — expect <strong>fragmentation</strong> among providers (Gemini, Anthropic, etc.) prior to standards solidifying.</li><li>The SDK is rooted in <strong>MCP</strong>, an open protocol that could allow cross-platform interoperability, but widespread adoption remains unknown.</li></ul><p>Our take? We applaud the innovation but hope for <strong>open interoperability</strong> across AI platforms. An open standard could transform AI-native web experiences into the next major frontier.</p><h3>Genius Tips and Tricks</h3><p>These are some tips in the real world that most people forget:</p><ol><li><strong>Versioning and backward compatibility</strong> — the API and SDK contracts can evolve. Code defensively.</li><li><strong>Security and privacy</strong> — apps must explicitly define OAuth scopes and handle user data with care.</li><li><strong>Performance</strong> — reduce latency; the user expects instant responses.</li><li><strong>Fallback design</strong> — have your app degrade nicely if the user’s area or plan doesn’t support apps.</li><li><strong>Monitoring</strong> — logging, analytics, and tracing are needed to monitor usage and debug.</li><li><strong>Discovery and ranking</strong> — apps will soon be fighting for attention. Metadata and relevance will matter.</li></ol><h3>Cross-Link: Real-World Case Studies &amp; Possibilities</h3><p>If you’d like to view how all this is made possible, explore our detailed <a href="https://stackedit.io/app#"><strong>ChatGPT AgentBuilder and App SDK Case Studies and Idea Scenarios</strong></a>.<br>There, we dissect real-life scenarios like:</p><ul><li><strong>Smart CRM Assistants</strong> that bring together AgentKit and Apps SDK to show aggregated customer profiles, compose personalized messages, and even extract relevant legal clauses.</li><li><strong>Smart Company Assistant</strong> Advanced helper within ChatGPT for companies, allowing to query and search not only for generic solutions, but internal resources, files, knowledge and the web in one tool.</li><li><strong>Public GEO Applications</strong> that help pages or brands regain SEO visibility by revealing structured content and directing users to their websites.</li><li><strong>Internal Employee Onboarding Agents</strong> that answer queries, create accounts automatically, and automate requests for templates or access.</li><li><strong>Smart Troubleshooter Assistants</strong> that route internal issues, fetch known workarounds, and send to the right person based on the company’s org structure.</li></ul><p>Each of these shows how AgentKit and the Apps SDK can be combined to build end-to-end, AI-driven workflows — inside and outside your organization.</p><h3>Try It Yourself</h3><p>If you want to try these tools out yourself:</p><ul><li><strong>AgentKit:</strong> Sign up at <a href="https://openai.com/">OpenAI</a>, verify your organization, and request access. A few features are still in preview and need approval.</li><li><strong>ChatGPT Apps SDK:</strong> Visit the <a href="https://developers.openai.com/apps-sdk/">OpenAI Developer Docs</a> to explore example repositories and follow setup guides.</li></ul><h3>Part 2</h3><p>If you are interest.<br>There is a second part to this blog article:<br><a href="https://simonauer.medium.com/the-future-of-integration-with-chatgpt-agentkit-chatgpt-apps-potential-use-cases-61ad3eb895e5">What are potential use cases for AgentKit &amp; ChatGPT App SDK</a></p><h3>In Summary</h3><p>We’re entering a new phase of AI — one where ChatGPT evolves from “answer engine” to <strong>action platform</strong>.</p><ul><li><strong>AgentKit</strong> empowers organizations to automate workflows in a human-friendly, conversational way.</li><li><strong>ChatGPT Apps SDK</strong> enables businesses to build <em>native experiences</em> inside AI conversations.</li></ul><p>We’re already experimenting with both technologies for innovative clients — from media outlets to data-driven enterprises — helping them discover how these tools can fit their business models and user experiences.</p><p>If you’re curious about how <strong>AgentKit</strong> or <strong>ChatGPT Apps</strong> could work for your organization, now’s the perfect time to explore.</p><p>I read and write a lot about ai, tech, new stacks, app- &amp; platform development I think it always helps to get some insights and share knowledge.</p><p>So if you are interested in these topics as well, follow me here on medium or on <a href="https://twitter.com/SimonEritsch">twitter</a>.</p><p>Thanks for reading :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8f11f61ddef" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/chatgpt-agentkit-and-chatgpt-app-sdk-how-do-they-work-do-they-have-potential-f8f11f61ddef">ChatGPT AgentKit and ChatGPT App SDK — How do they work? Do they have potential?</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Future of Integration with ChatGPT AgentKit & ChatGPT Apps — Potential Use cases]]></title>
            <link>https://medium.com/swlh/the-future-of-integration-with-chatgpt-agentkit-chatgpt-apps-potential-use-cases-61ad3eb895e5?source=rss-b88835c59a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/61ad3eb895e5</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[sdk]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[openai]]></category>
            <dc:creator><![CDATA[Simon Auer]]></dc:creator>
            <pubDate>Mon, 13 Oct 2025 13:11:46 GMT</pubDate>
            <atom:updated>2025-10-13T13:23:04.797Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PoGfsbIqbAcapQT8-HLahQ.png" /><figcaption>Custom ChatGPT Application using the new SDK</figcaption></figure><h3>The Future of Integration with ChatGPT AgentKit &amp; ChatGPT Apps — Potential Use cases</h3><p>Artificial Intelligence is entering a new phase — one where it doesn’t just <em>talk</em> but actually <em>acts</em> and <em>shows</em>.</p><p>OpenAI’s recent releases — <strong>ChatGPT AgentKit</strong> and the <strong>ChatGPT Apps SDK</strong> — mark a shift from conversation to interaction, from Q&amp;A to <em>execution and experience</em>.</p><p>Here we’ll explore what these tools really do, how to utilize them, where the limits are, and why we feel they are among the most exciting developments for bringing AI into day-to-day workflows and digital products.</p><p><strong>This article is part of a 2 part series:</strong></p><ul><li><a href="https://simonauer.medium.com/chatgpt-agentkit-and-chatgpt-app-sdk-how-do-they-work-do-they-have-potential-f8f11f61ddef">Part 1: How do AgentKit &amp; Chatgpt Apps work and what’s their potential</a></li><li>Part 2: What are potential use cases for AgentKit &amp; ChatGPT App SDK</li></ul><h3>ChatGPT AgentKit</h3><p>The <strong>ChatGPT AgentKit</strong> is OpenAI’s latest developer platform that allows you to build, deploy, and scale agents connected directly to your data, APIs, and business flows.</p><p>Think of it as <em>Zapier with reasoning and memory</em> — but embedded right inside ChatGPT.</p><p>It enables <strong>contextual automation</strong>: an AI agent that doesn’t just execute a command, but <em>understands</em> why and when to do it.</p><p>For instance, instead of sending every report update, it could reason:</p><blockquote><em>“This data hasn’t changed significantly since yesterday — I’ll wait until tomorrow unless the deviation crosses a threshold.”</em></blockquote><p>That’s what AgentKit differs from: it brings judgment to automation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OhOn_Z6NxMMleVxo.png" /></figure><h3>ChatGPT Apps SDK</h3><p>While AgentKit is concerned with logic and action, the <strong>ChatGPT Apps SDK</strong> is concerned with presentation and interaction.</p><p>It allows developers to incorporate <strong>interactive mini apps</strong> — dashboards, widgets, forms, or visual results — <em>inside ChatGPT conversations</em>.</p><p>These apps are built using OpenAI’s <strong>Model Context Protocol (MCP)</strong> — an open standard that could soon enable cross-platform compatibility with other assistants like Gemini or Anthropic’s Claude.</p><p>Apps don’t just talk — they <em>show</em>. And that turns ChatGPT into a full interface for both internal tools and public-facing content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ykhzUeg7dkaH6Kk-.gif" /></figure><p>A custom chatgpt app for finding donatiosn on impactory.org</p><h3>Combining Both Worlds</h3><p>Used together, <strong>AgentKit</strong> and <strong>Apps SDK</strong> can form the backbone of real, intelligent digital ecosystems:</p><ul><li>The <strong>agent</strong> retrieves, processes, or creates the data.</li><li>The <strong>app</strong> displays, transforms, or interacts with it.</li></ul><p>Below, here, we offer some “idea case studies” of how this could play out in the real world — from the corporate office to customer-facing apps.</p><h3>Case Study 1: Smart CRM Integration and Sales Enablement</h3><p><strong>Issue:</strong><br>Every big organization has siloed customer information — CRM records, support tickets, meeting notes, contracts, and marketing emails are all in separate tools.<br>Sales reps waste hours switching between systems just to get the full picture before reaching out to a client.</p><p><strong>Solution:</strong><br>A <strong>ChatGPT-powered CRM Agent</strong>, built using AgentKit, would be able to search all these systems and build a full picture of the client in a blink of an eye:</p><ul><li>Historical interactions and meeting summaries</li><li>Contract terms or renewal dates</li><li>Most recent support issues or satisfaction scores</li><li>Open opportunities and risk alerts</li></ul><p>Then, an <strong>App SDK-powered interface</strong> could chart this in a neat panel directly in ChatGPT — a “Customer Snapshot” with one-click choices:<br>→ Build a follow-up email from notes in their own words<br>→ Suggest next contact date based on probability of renewal<br>→ Top 3 conversation points to discuss before a meeting</p><p>The same platform would even include a <strong>Legal Query Agent</strong>, pulling relevant contract terms or NDAs based on what the salesperson is negotiating — securely and in context.</p><p>As of now with chatgpt this approach would need to be thought through carefully, because you probably don’t to provide Chatgpt with all the information available about you and your clients, but we are sure, that on premise alternatives to agent kit will soon arrive and then this is a very good usecase.</p><h3>Case Study 2: Public GEO Apps and Smarter User Engagement</h3><p><strong>Problem:</strong><br>The majority of publishers, online stores, and local businesses are losing organic traffic as users shift from search engines to AI assistants such as ChatGPT.</p><p><strong>Solution:</strong><br>Using the <strong>ChatGPT Apps SDK</strong>, you may be able to build a <strong>GEO-based content app</strong> that appears when people ask location-related questions such as:</p><blockquote><em>“What is happening in Berlin this weekend?”<br>“Where can I purchase your product locally?”</em></blockquote><p>Your app could display structured data (promotions, store locations, events) in a visually engaging widget — directly within ChatGPT — with dynamic links to your own site for full details.</p><p>The <strong>AgentKit backend</strong> could handle freshness of the data, validating and enriching your CMS, CRM, or API feeds in real time.</p><p>This approach doesn’t replace SEO — it brings it to the conversational space.<br>You’re not just hoping ChatGPT cites you; you’re <strong>providing the content directly</strong>.</p><h3>Case Study 3: Internal Employee Onboarding and Support Agent</h3><p><strong>Problem:</strong><br>New employees often struggle to find information scattered across wikis, chats, or outdated documents. IT and HR teams lose time answering the same questions repeatedly.</p><p><strong>Solution:</strong><br>An <strong>internal onboarding agent</strong> could:</p><ul><li>Answer questions about company policies, benefits, or tools.</li><li>Automatically present relevant templates, guides, or checklists.</li><li>Create accounts and permissions using integrated APIs.</li><li>Escalate to the appropriate person if something isn’t recorded.</li></ul><p>With the <strong>Apps SDK</strong>, this could be done as an interactive aide inside corporate ChatGPT UI — showing links, images, or one-click actions (e.g., “Create my VPN account” or “Order my hardware”).</p><p>The agent may even check on progress: “You’ve completed 8/10 steps on your onboarding process. Should I request system access for your follow-up project?”</p><h3>Case Study 4: Intelligent Troubleshooter and Escalation Assistant</h3><p><strong>Problem:</strong><br>In production, logistics, and IT operations, internal problem reports typically take hours to route to the right person. Minor issues spiral out of control because no one knows who should do the fix.</p><p><strong>Solution:</strong><br>A <strong>Troubleshooter Agent</strong> built with AgentKit can be utilized to monitor issue reports and chat messages between platforms like Jira, Slack, and internal ticket systems.<br>On new issue arrival, it can:</p><ul><li>Inspect context and identify the issue.</li><li>Check cross-referenceable documentation or known workarounds.</li><li>If unresolved, automatically forward it to the appropriate owner according to the organizational chart.</li><li>Summarize the issue and previous efforts for brevity.</li></ul><p>A colleague <strong>Troubleshooter App</strong> (Apps SDK) would show the complete context visually:<br>a timeline of what happened, suggested solutions, and responsible teams — all in ChatGPT.</p><p>Not only is it time-saving, but it also builds a searchable knowledge base because agents learn from successful fixes over time.</p><h3>From Concept to Collaboration</h3><p>Each of these examples illustrates how ChatGPT’s new ecosystem transcends text generation to become a genuine <strong>business integration platform</strong> — reasoning, automating, and presenting in a single loop.</p><p>We think the most thrilling aspect is not so much what’s available today, but what comes next: how these capabilities can be adapted to each organization’s own workflows, data, and user experiences.</p><p>We’re already experimenting with these ideas for innovative clients and would love to explore how <strong>ChatGPT AgentKit</strong> and <strong>Apps SDK</strong> could enhance your processes — whether internal, customer-facing, or entirely new digital products.</p><h3>Try It Yourself</h3><ul><li><strong>AgentKit:</strong> Sign up at <a href="https://openai.com/">OpenAI</a>, verify your organization, and request early access.</li><li><strong>ChatGPT Apps SDK:</strong> Visit the <a href="https://developers.openai.com/apps-sdk/">Apps SDK documentation</a> and start building in developer mode.</li></ul><p>Both are in preview — but that’s exactly when it’s smartest to start experimenting.</p><p>There is also a second part to this entry:</p><p><a href="https://simonauer.medium.com/chatgpt-agentkit-and-chatgpt-app-sdk-how-do-they-work-do-they-have-potential-f8f11f61ddef">https://simonauer.medium.com/chatgpt-agentkit-and-chatgpt-app-sdk-how-do-they-work-do-they-have-potential-f8f11f61ddef</a></p><h3>In Summary</h3><p>ChatGPT’s new <strong>AgentKit</strong> and <strong>Apps SDK</strong> push AI beyond conversation into <em>collaboration</em>.<br>They let businesses turn ChatGPT into both a <strong>workflow orchestrator</strong> and a <strong>visual interface</strong>.</p><p>If you’re curious about how these tools could enhance your product, workflows, or digital visibility, we’d love to talk.<br>Early experimentation today means you’ll be ready when the ecosystem goes fully live tomorrow</p><p>I read and write a lot about ai, tech, new stacks, app- &amp; platform development I think it always helps to get some insights and share knowledge.</p><p>So if you are interested in these topics as well, follow me here on medium or on <a href="https://twitter.com/SimonEritsch">twitter</a>.</p><p>Thanks for reading :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61ad3eb895e5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/the-future-of-integration-with-chatgpt-agentkit-chatgpt-apps-potential-use-cases-61ad3eb895e5">The Future of Integration with ChatGPT AgentKit &amp; ChatGPT Apps — Potential Use cases</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My learnings running flutter on the Apple Vision Pro]]></title>
            <link>https://faun.pub/my-learnings-running-flutter-on-the-apple-vision-pro-048eb7d4c209?source=rss-b88835c59a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/048eb7d4c209</guid>
            <category><![CDATA[apple-vision-pro]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[app-development]]></category>
            <dc:creator><![CDATA[Simon Auer]]></dc:creator>
            <pubDate>Sun, 11 Feb 2024 21:54:57 GMT</pubDate>
            <atom:updated>2024-02-12T20:38:58.904Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nd/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0xb8ngQrJF0ED-NogtZEqw.jpeg" /></figure><p>I had the chance to participate in an AppleVisionPro hackathon (more details at <a href="https://medium.com/u/e1b327d27b35">Florian Bauer</a>s article — <a href="https://medium.com/@florian_4237/highlights-apple-vision-pro-hackathon-2c1fe76a17e3?source=friends_link&amp;sk=7eb8c3373e5b5c973bc4f037986b7b60">here</a>) and to try out flutter on the real device. Some things were familiar from Flutter on Apple devices, others might be more problematic, if you don’t know about them upfront. So here are my first impressions.</p><p>If you are more interested in a guide how to get flutter running on the vision pro, how to set it up and how to get it working in release mode, I prepared a different article:</p><p><a href="https://simonauer.medium.com/how-to-get-started-with-flutter-and-visionos-apple-vision-pro-4335c3243248">https://simonauer.medium.com/how-to-get-started-with-flutter-and-visionos-apple-vision-pro-4335c3243248</a></p><p><strong>Disclaimer:</strong><br>I hope the following information is of help to you, but please take them with a grain of salt. I only tested the device for a day and focused more on developing something worth showing for the hackathon.</p><p>It is quite possible, though, that some of the things I mention here are somehow possible and I missed them, but still think and research them, before you expect them for your app.<br>Also, please let me know if you find anything. ;)</p><h3>## My personal opinion about VR/AR/XR</h3><p>Just for you to know where I am coming from:<br>I have quite an interest in VR/AR/XR. <br>I had a Google Cardboard, an Oculus Rift and now also own a Meta Quest 3. So I have spent quite a bit of time on VR/AR devices and know the ups and downs.</p><p>I also read quite a bit about it and was very excited to hear, that apple is entering the game.<br>I think they can push this form factor forward and make it more mainstream, because VR/AR is an amazing and unique experience, that I would recommend everyone to try.</p><p>BUT I don’t think VR is the future (at least for now) and that everybody will run around in their glasses all day.</p><p>And as a short TLDR spoiler already:<br>After trying the vision pro today, I am even more convinced of that. ;)</p><h3>## My first impressions of the device</h3><p>The device is beautiful, feels very sturdy and well-made and thought through.<br>(apart from the magnetic cover thing, that let us almost drop the glasses multiple times during the day)</p><p>I am not going into all the details because I am not a hardware expert, but to summarize it:<br>I honestly did not wear it that much. It was very heavy, pinched on my nose and I think at the end of the hackathon, we all agreed that we are all kind of glad to not have to put it on for a while.</p><p>The eye tracking and hand gestures worked amazingly well though, and we were surprised how fast and easy you accept and use them. :)</p><h3>## Getting flutter up and running on the device</h3><p>Getting to work with flutter on visionOS was super easy and fast.<br>I wrote a step-by-step guide on how to do that if you are interested in that:<br><a href="https://medium.com/p/4335c3243248/">https://medium.com/p/4335c3243248/</a></p><p>Just as a summary here:<br>The process was super easy and setting it up (~5–10 minutes) and developing with flutter is very similar to developing for iOS and iPad.</p><h3>## The possibilites with flutter</h3><p>As flutter devs, we can simply run our iOS apps without any hassle on the Vision Pro. All it takes is adding the device as a new destination and pairing XCode and the vision pro.</p><h4>Sensors &amp; Camera</h4><p>In our short hackathon session, we already played around a bit with sensors, camera access (see limitations below ;) ).<br>All in all most things we tried worked quite well and used the same APIs and packages, we would also use for iOS.</p><p>So there are already plenty of things you can work with without having to do custom work or wait for packages to drop.</p><p>I think most iOS or iPad apps can work out of the box and without any issues on the device, or can be made to so.</p><h4>Inputs</h4><p>We also tried different input methods (Text Input, buttons, slider, checkboxes, …) which worked very fine without any additional changes needed.</p><p>An interesting part here was seeing how different the same application feels on an iPhone/iPad and then on visionOS, just because of the eye tracking/hand gesture input.</p><p>I think it changes the UX completely and allows for very interesting use cases and new possibilities.</p><p>There were not many things (apart from the points below), that were different for this device and that surprised me very much. Because I expected to be much more limited in the beginning.</p><p>Most of the Flutter gestures are exactly the ones we know and are just “translated” into the visionOS equivalents like the tap/click gesture into the “pinch fingers while looking at it” gesture automatically.<br>(except hover -&gt; see “Limitations”)</p><h3>## The limitations</h3><p>There are however some limitations and things to be careful about, that I want to get out there and these are the main reason why I am writing this article.</p><h4>### iPad windowed style apps instead of worlds</h4><p>With flutter, we currently are limited to “Apps designed for iPad”, which means that our apps are limited to a floating window in our living room instead of immersive applications, that surround us without any borders.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lKiHqvr6VDa_solrkRVB7g.jpeg" /><figcaption>Here you can see my small “drawing” app, to test all possible types of inputs and their accuracy with flutter.</figcaption></figure><p>That makes sense, of course, but I still wanted to mention it here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BgjymV5XPvlLZ5yvl3XLKw.jpeg" /></figure><h4>### No access to front camera</h4><p>This is something, we have not tried out completely thoroughly, so there might be a way (if so, please let me know in the comments), but while access to the camera works and is straightforward using the same flutter apis and packages as for iOS/iPad apps, we could not get the camera facing to the outside front working.</p><p>It seems like Apple has restricted the access to it. Probably this is a privacy measurement and maybe there are ways around it for apps in the stores, but keep this in mind and research if your app depends on it.</p><p>There is access to the “inner camera”, that shows your “avatar” with your (not always precise) movements, that you can access with the camera api, though. ;)</p><h4>### No access to eye-tracking / eye pointer position</h4><p>One of the things we were most excited about and had high hopes for, was access to the eye tracking listener (we hoped it would be like a MouseGesture listener, that sends us coordinates), so we could build cool things, that were not possible at all on other devices. (drawing just with your eyes, …)<br>But we soon realized that there is no access to these listeners or data.</p><p>I think this is due to privacy concerns and apple also states, that it is not possible to get hover data unless, the user is connected with a mouse and moves the pointer around. ( <a href="https://support.apple.com/en-us/HT214051">https://support.apple.com/en-us/HT214051</a> )<br>Although this is possible, it is probably not the way it will be used all to much and therefore rather an edge case.</p><p>This diminishes a lot of the potential and is not possible in either flutter or any other framework so far.</p><p>### No hover styles and callbacks</p><p>Initially, we were like “ok, then we cannot build the application like this”, but what if we just create a grid of “InkWells” or “GestureDetectors” and then detect the “hover” event on these to trigger certain actions, until we realized, that also that does not work.</p><p>It really seems like Flutter does not get the trigger here and also adding custom “onHover” gestures, triggers perfectly fine on iOS, but not on vision OS.</p><p>And that is where it gets problematic.</p><p>For a device, that does not have a visual cursor, but relies on you looking at a button to not show a hover effect in Flutter could be problematic. Because you don’t get a visual feedback that the area you are currently looking at is “clickable” unless you try it.</p><p>In practice this worked better than expected and most of the time we could use the application intuitively, but the UX was definitely flawed compared to SwiftUI applications, where “onHover” Callbacks also don’t work, but the visual hover effects do!</p><h4><strong>## Resume &amp; Opinion</strong></h4><p>So here are some things, that could be of interest for you, if you are thinking of adjusting/creating an app for visionOS are just to know what you can tell colleagues, clients or somebody else about the possibilities of flutter on visionOS.</p><p>As said above: Please take the details above with a grain of salt because there might be ways around them, new changes in later versions and I could also be wrong.</p><p>This is meant as a short intro for you, so if you are thinking of working with it, you know what to research or be careful about, which might not have crossed your mind as problematic, before getting started.</p><h4>### Would I recommend our clients to build their apps for vision OS?</h4><p>Yes and no. Generally, I think, the market is still too small and as of right now, I cannot imagine that people are really going to wear these glasses for a longer period after the hype went down, but because it was so easy to take an existing flutter app and deploying it for vision OS, I might think of some use cases, where it could make sense.</p><p>In case you want to get started with Flutter for visionOS (works also well if you don’t have the device and use the simulator), you can find my step by step guide on how to set everything up here:</p><p><a href="https://simonauer.medium.com/how-to-get-started-with-flutter-and-visionos-apple-vision-pro-4335c3243248">https://simonauer.medium.com/how-to-get-started-with-flutter-and-visionos-apple-vision-pro-4335c3243248</a></p><p>I will try to get my hands on another pair of glasses soon and might share experience updates, corrections and maybe solutions in the future.</p><p>I think it always helps to get some insights and share knowledge. So if you are interested to read more about this topic or about flutter development in general, <strong>follow me here</strong> on medium or on <a href="https://twitter.com/SimonEritsch"><strong>twitter</strong></a><strong>.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*QymrK2Udal9WKmL-.png" /></figure><p>👋 If you find this helpful, please click the clap 👏 button below a few times to show your support for the author 👇</p><p>🚀<a href="http://from.faun.to/r/8zxxd">Join FAUN Developer Community &amp; Get Similar Stories in your Inbox Each Week</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=048eb7d4c209" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/my-learnings-running-flutter-on-the-apple-vision-pro-048eb7d4c209">My learnings running flutter on the Apple Vision Pro</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to get started with Flutter and VisionOS / Apple Vision Pro]]></title>
            <link>https://simonauer.medium.com/how-to-get-started-with-flutter-and-visionos-apple-vision-pro-4335c3243248?source=rss-b88835c59a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/4335c3243248</guid>
            <category><![CDATA[apple-vision-pro]]></category>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Simon Auer]]></dc:creator>
            <pubDate>Sun, 11 Feb 2024 21:53:17 GMT</pubDate>
            <atom:updated>2024-02-11T21:55:37.966Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gr5-FyaZJ7b8Wd3eHwboAA.jpeg" /></figure><p>Yesterday I had the chance to participate in a VisionPro Hackathon hosted by <a href="https://twitter.com/_florianbauer">https://twitter.com/_florianbauer</a> here in Austria.</p><p>Florian wrote an article about it here:<br><a href="https://medium.com/@florian_4237/highlights-apple-vision-pro-hackathon-2c1fe76a17e3">https://medium.com/@florian_4237/highlights-apple-vision-pro-hackathon-2c1fe76a17e3</a></p><p>Because we were some of the first people here in Austria and we did not find a lot of really helpful information and content, I wanted to share the first insights and learnings from this day.</p><p>This small guide will focus on how to prepare and get up and running with the simulator and device to run your flutter app on it, but I also noted down some of my learnings, experiences and suprises in the following article:</p><p><a href="https://simonauer.medium.com/my-learnings-running-flutter-on-the-apple-vision-pro-048eb7d4c209">My learnings running flutter on the Apple Vision Pro</a></p><h4># How complicated is it to make flutter apps for the vision pro?</h4><p>Before I get started, here is a quick summary. ;)<br>It is really simple to get started because Apple prepared the workflows in the same way as for iPhone, iPad or the Apple Watch.</p><p>I was able to get rather big and complicated existing apps to run on the vision pro within 5–10 minutes. (just some really ios specific SDKs had to be removed)</p><p>To be honest, I was really suprised how easy and fast it was to set everything up, so you could really give it a try.</p><p>Also, the simulator works quite well. Keep in mind, though, that the apps you can build in flutter (at least, as far as I know) are not the “world” or immersive apps, but rather the “floating window” apps that just work like a big monitor for your ipad/iphone.</p><p>Also I have tried around, but did not get vision hover effects to work on flutter, which could be a problem, because they are quite important for the UX of your app.<br>(more on that in the article <a href="https://simonauer.medium.com/my-learnings-running-flutter-on-the-apple-vision-pro-048eb7d4c209">https://simonauer.medium.com/my-learnings-running-flutter-on-the-apple-vision-pro-048eb7d4c209</a> )</p><h4>## Setting up XCode &amp; Simulator</h4><p>To get started, you need to install <a href="https://developer.apple.com/download/all/?q=xcode%2015%20beta">Xcode 15 beta 2</a> to be able to work with visionos. Also install the visionos Simulator, when asked to do so.</p><p>### Prepare your flutter project</p><p>Create a new flutter app ( `flutter create vision-demo` ) or use your existing one.</p><h4>### Open projecct in XCode</h4><p>Open the ios/Runner.workspace file in XCode to configure it to use visionos.</p><h4>### Add vision pro as supported Devices for your app</h4><p>Next we need to make sure visionos is added to the devices supported by our app.<br>For that, just:</p><ul><li>click on “Runner” (left bar)</li><li>Select the Target “Runner” (left bar in the white middle section)</li><li>“General” (Top Tab in the middle)</li><li>click on the plus in the section “Supported Destinations”</li><li>here you should now be able to select “Apple Vision” -&gt; “Designed for iPad”)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MOjPiFIlbNNGyxAtLFGNow.jpeg" /></figure><p>The designed for ipad apps, are the ones we are able to make using Flutter because they are basically iPad apps within a floating window in our living room. At least for now, it seems like you really need SwiftUI or RealityKit to make immersive apps.</p><p>If you don’t see the “Apple Vision” entry in the dropdown, make sure you have the correct XCode version ( <a href="https://developer.apple.com/download/all/?q=xcode%2015%20beta">Xcode 15 beta 2</a> ).</p><h4>### Run the app on your simulator</h4><p>Now, the final step for getting your first app running in the visionOS simulator is to just select the “Apple Vision pro (Designed for iPad)” as your Run Target and click the “Run” (Play) button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h7psmpvcR-0jhQCG9UZGaQ.jpeg" /></figure><h4>## Setting up for real device</h4><p>If you have a real Apple Vision Pro and want to test run your app on that, you just need to pair the Vision Pro with your XCode.</p><p>Sidenote: Just because we were curious at the Hackathon — yes, it is possible to run your app in Vision Pro guest mode without a cable and with different Apple Ids on the glasses and your XCode.<br>You just need to make sure you are in the same Wifi and you need to add the device to your XCode and verify it using the Code you get insisde of the headset.</p><p><strong>To do that, you just</strong></p><ul><li>have to put the Vision Pro in to pairing mode <br>(On the Vision Pro: Settings -&gt; General -&gt; Remote Devices)</li><li>In XCode: Windows -&gt; Devices &amp; Simulators</li><li>Select the Vision Pro and click the “pair” button</li><li>Now you have to enter the code you see inside of the headset</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NbIPK432USz3yrwBxJ3JHA.jpeg" /></figure><ul><li>After that, you can just select and run your app on the vision pro</li><li>On first run, it XCode will tell you to enable some privacy permissions on the headset, to be able to connect to the debugger and push code to the device (Settings → Privacy &amp; Security → Developer Mode)</li></ul><p>Bare in mind, that (at least for now and as far as we have tried), hot reloading did not work and you always to rerun the app.<br>(if you know how to avoid that, let me know in the comments. would love to hear it)</p><h4>## Publishing a release version on the device</h4><p>Running a test app on the device is nice and works quite well with the steps above. However as soon as you stop XCode the app would crash on the device of course. Because we wanted to show our app around without the risk of it crashing, because it cannot connect to the debugger, we ran the app in release mode.</p><p>To do this, you simply have to</p><ul><li>Select the scheme at the top and choose “<strong>Manage Schemes”</strong></li><li>Select your app “<strong>Configurations”</strong> and click it</li><li>Now on the left side, make sure “<strong>Run</strong>” is selected</li><li>On The right side set <strong>“Build Configuration”</strong> to <strong>“Release”</strong></li><li>And uncheck the checkbox <strong>“Debug executable”</strong></li><li>Start your app again (run/play button)</li></ul><p>That’s it. Now your flutter app will run on the vision pro even if you debugger disconnects.</p><p>As you can see, it is super easy to get up and running with your flutter apps on visionOS.</p><p>This article just focused on making everything work, but I also wrote a bit about my experience and impressions on the Vision Pro (especially with Flutter).<br>So if you are interessted in that, check out:</p><p>I read and write a lot about flutter &amp; tech. I think it always helps to get some insights and share knowledge. So if you are interested in these topics as well, follow me here on medium or on <a href="https://twitter.com/SimonEritsch">twitter</a>.</p><p>Thanks for reading :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4335c3243248" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to setup laravel forge backups with OVH S3 (Object storage)]]></title>
            <link>https://simonauer.medium.com/how-to-setup-laravel-forge-backups-with-ovh-s3-object-storage-1af1cd975e88?source=rss-b88835c59a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/1af1cd975e88</guid>
            <category><![CDATA[ovh]]></category>
            <category><![CDATA[forge]]></category>
            <category><![CDATA[s3]]></category>
            <dc:creator><![CDATA[Simon Auer]]></dc:creator>
            <pubDate>Sun, 11 Feb 2024 14:46:02 GMT</pubDate>
            <atom:updated>2024-02-11T14:46:02.375Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rOdgEN5YQC8oCX3b54Cuzg.png" /></figure><p>I was just setting up laravel forge backups (finally a backup solution directly from forge ❤) and since I like to use (more) local providers, I wanted to implement it with OVH and their S3 compatible object storage instead of Amazon.</p><p>Setting everything up was actually not really that hard, but there are 1–2 smaller stepping stones, that I want to document here for everyone else having the same problem.</p><blockquote><strong><em>Note:</em></strong><br>Although this post tackles laravel forge, the important information is probably just how to get ovh s3 credentials and prepare it. So you can probably also use it for other services equally well.</blockquote><h3>Step 1: Creating a new project</h3><p>Start by creating a new project in your OVH panel.</p><p>In your control panel go to:<br>Public Cloud -&gt; + create new project and enter a project name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Iz5lhqRFovvP9-6BxSMsA.png" /></figure><h3>Step 2: Create an Object Container</h3><p>As soon as your project is created, go back to the Public Cloud and in to your new project.<br>There you can click the Object Storage menu item on the left and then click the + Create an object container button to … yeah, you probably know what it does. ;)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l7Os74P_tlgiOPEyn28iAw.png" /></figure><ul><li>Then select the region</li><li>Afterwards select Private (we use this, because we don’t want our backup files to be accessible via a url)</li><li>And then define a container name (we usually create a container for every project we want to backup here)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BZi7RworUZdAlHebPBdh5g.png" /></figure><h3>Step 3: Get the S3 credentials (Access Key and secret)</h3><p>And here is the somehow complicated (and confusing) part, that took quite some time to figure out for me.</p><p>As with other providers I was looking for a way to get my API and secret credentials in the OVH admin panel, but it seems like there is no way to do this there right now. (Please correct me if I am wrong and add instructions where to find it. I would love to have an alternative)</p><p>The only way for now is to use the openstack cli.<br>To be able to use that and access our object storage from our computer, we need the OpenStack RC File (Identity File).</p><h4><strong>Get openstack identity file from OVH Horizon:</strong></h4><p>Then go back to the OVH admin panel and create an openstack/horizon user for this project.</p><p>Horizon is an adminpanel for openstack (the system OVH uses in the background to provide Object Storage)</p><p><strong>Creating a horizon user</strong></p><p>In the left navigation (rather on the bottom) you will find a menu item User &amp; Roles , that you should click.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iop883bkAdQfUYQBy55gug.png" /></figure><p>Here click + Add user and provide a short description for yourself.<br>Then make sure this user has the ObjectStore operator role assigned and save.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*QSjRZntrCUnMRUys8c_POA.png" /></figure><p>You will then see the username and password in a green alert:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9lxuTF4oyza0RpSmMPRgcg.png" /></figure><p>Make sure to save the password somewhere save, because you can only reset it later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/261/1*gpRSjnSuQ1uvBbav7YlJ5g.png" /></figure><p>Now that you have a user, you can click the menu item Horizon in the left menu.</p><p>A new tab with a login dialog will open and you can input the data you just created for the user.<br>(username and password from the green dialog)</p><h4>Downloading the openstack.sh file:</h4><p>Inside of the horizon Admin panel, it’s very simple.<br>Just download the OpenStack RC File (v3), call it openrc.sh and put it in a folder, that you can access now via bash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aA8ns1P4Ej3YGG9h4YmXPw.png" /></figure><h4>Install openstack cli</h4><p>Alright. Now we are almost ready. We have the auth file and now we only need the tools.</p><p>For that you have to install the openstack-cli (here ubuntu bash command — otherwise google knows how to install it for your system)</p><pre>sudo apt-get -y install python-pip3 pip3 python-openstackclient</pre><p><strong>Prepare openstack on your computer:</strong></p><p>Open your terminal/bash and change into the directory, where you downlowded the openrc.sh file.</p><p>Now init openrc.sh in your session:</p><pre>source openrc.sh</pre><h4><strong>Create the credentials</strong></h4><p>Now call the following command to create your credentials:</p><pre>openstack ec2 credentials create</pre><p><strong>The credentials</strong></p><p>Now you should see a table of credentials:</p><pre>simonerich@simonerich:~$ openstack ec2 credentials create<br>+ — — — — — — + — — — — — — — — — — — — — — — — — — — — — — — — —+<br>| Field | Value |<br>+ — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — +<br>| <strong>access | 19134dcxxxxxxxa7b8f3affa | // the access token</strong><br>| links | {‘self’: ‘<a href="https://auth.cloud.ovh.net/v3/users/50f005967e3947da828a8056cafa36ab/credentials/OS-EC2/19134dc91e2c4bd5a3912da7b8f3affa&#39;">https://auth.cloud.ovh.net/v3/users/50f042xxxxxx828a8056cafa36ab/credentials/OS-EC2/19134dc9xxxxxxxxxx8f3affa’</a>} |<br>| project_id | 9503xxxxxxxxxxxxxxxxxxxxcc72 |<br>| <strong>secret | 2dc8xxxxxxxxxxxxxxxxxxxx6bcaa | // the secret token</strong><br>| trust_id | None |<br>| user_id | 50f005xxxxxxxxxxxxxxxxxafa36ab |<br>+ — — — — — — + — — — — — — — — — — — — — — — — — — — — — — — — — +</pre><p>In this table you see a couple of values, but the most important ones for us are access (the access/auth token) and secret (the secret token)</p><h3>Step 4: Setup Laravel Forge backups</h3><p>Now we have everything we need and we just need to login into laravel forge, go into the Project and Site and then click Backups.</p><p>In the form there choose the Custom (S3 Compatible) Provider and then configure it the way you want.</p><p><strong>Provider:</strong> Custom (S3 Compatible)</p><p><strong>Bucket:</strong> The name of your container (in our case myawesome-project )</p><p><strong>Endpoint:</strong> <a href="https://s3.de.cloud.ovh.net/">https://s3.<em>XXX</em>.cloud.ovh.net</a> (replace XXX with the location you chose. i.e: rbx, sbg, bhs, gra, de, … — you can also find it in your Object Storage overview table in OVH in the column Region .)</p><p><strong>Access Key:</strong> access from your cli table output above</p><p><strong>Secret Key: </strong>secret from your cli table output above</p><p>That’s it. It should something like this:</p><h3>All done</h3><p>Alright. That should be it!<br>If you made it this far and saved, everything should work perfectly fine! :)</p><p>I hope this helped and saved you some time.</p><p>I would really appreciate any feedback, so please comment, clap, or follow me here or on twitter for more stuff like this, or other helpful tips/tricks/tools for laravel, react, angular, vue and flutter.</p><p><a href="https://twitter.com/SimonEritsch">JavaScript is not available.</a></p><p><strong>This is where I got most of the instruction parts from:</strong></p><p><a href="https://fabien.io/get-s3-credentials-ovh-public-cloud/">https://fabien.io/get-s3-credentials-ovh-public-cloud/</a></p><ul><li><a href="https://docs.ovh.com/gb/en/public-cloud/getting_started_with_the_swift_S3_API/#use-aws-client">Getting started with the Swift S3 API</a></li><li><a href="https://docs.ovh.com/us/en/public-cloud/getting_started_with_the_swift_S3_API/">Getting started with the Swift S3 API</a></li><li><a href="https://www.ovh.com/blog/ovhcloud-object-storage-clusters-support-s3-api/">OVHcloud Object Storage clusters support S3 API | OVHcloud Blog</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1af1cd975e88" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Saving time typing flutter cli commands]]></title>
            <link>https://simonauer.medium.com/saving-time-typing-flutter-cli-commands-be4bde965846?source=rss-b88835c59a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/be4bde965846</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[dart]]></category>
            <dc:creator><![CDATA[Simon Auer]]></dc:creator>
            <pubDate>Sun, 26 Jun 2022 07:40:20 GMT</pubDate>
            <atom:updated>2022-06-26T08:17:41.495Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I3Z-C9ezgRaLA7xsBkUHfg.png" /></figure><p>Flutter is amazing, but sadly the cli is not really straight forward and commands get pretty long. This is why I have created a small bash script with my most used flutter commands and want to share it with you guys.</p><p>This bash script can of course used for every other cli tool (react, javascript, angular, …) or even other tasks as well. Just take it as an inspiration. :)</p><p>Oh and please share your scripts or usecases. Would love to hear what you guys would use it for! :)</p><p><strong>Disclaimer:</strong><br>The file here is just a start and not meant for you to copy it 1:1, because it will change and contain commands specific to me.<br>It is meant as a concept basis for you to build upon.</p><p>Everything should work fine on Unix and OSX. Maybe it works in Windows as well, but not sure about it.<br>(PRs with instructions are welcome in the git repo)</p><p><strong>You can find the repo here: </strong>PRs and feedback are welcome.<br><a href="https://github.com/SimonErich/bash-shortcuts-flutter/blob/main/flu.sh">https://github.com/SimonErich/bash-shortcuts-flutter/</a></p><h3>## How to use</h3><p>Just download the bash script:</p><p>```bash<br>wget <a href="https://github.com/SimonErich/bash-shortcuts-flutter/blob/main/flu.sh">https://github.com/SimonErich/bash-shortcuts-flutter/blob/main/flu.sh</a> ~/flu.sh<br>chmod +x ~/flu.sh<br>```</p><p><strong>## Linux &amp; OSX</strong></p><p>Add it to your profile file. (`~/.zshrc` or `~/.bashrc` — depending on your shell):</p><p>```<br>source ~/flu.sh<br>```</p><h3><strong>## You are good to go</strong></h3><p>Now close your terminal window and open it again.<br>Now you should just be able to call the commands in the document:</p><h4>### flu get</h4><p>Shortcut for the command `flutter pub get`</p><h4>### flu analyze</h4><p>Shortcut for the command `flutter analyze`</p><h4>### flu test</h4><p>Shortcut for the command `flutter test`</p><h4>### flu format</h4><p>Shortcut for the command `flutter format .` (just analyzes, but does not fix)</p><h4>### flu format fix</h4><p>Shortcut for the command `flutter format — fix .` (analyzes and fixes problems)</p><h4>### flu runner</h4><p>Shortcut for the command `flutter pub run build_runner — delete-conflicting-outputs`</p><h4>### flu runner</h4><p>Shortcut for the command `flutter pub run build_runner — delete-conflicting-outputs`</p><h4>### flu runner watch</h4><p>Shortcut for the command `flutter pub run build_runner watch — delete-conflicting-outputs`</p><h3>## Further reading</h3><p>The script was created based on the following article: (with more explanation on syntax and workings)<br><a href="https://dev.to/eddeee888/how-to-write-a-bash-shortcut-script-to-enhance-your-terminal-experience-5898">https://dev.to/eddeee888/how-to-write-a-bash-shortcut-script-to-enhance-your-terminal-experience-5898</a></p><h4>### Specific commands to our environment</h4><p>May not apply to your setup.</p><p><strong>#### flu widgetbook-build</strong></p><p>Shortcut for the command `flutter run -t lib/widgetbook.widgetbook.dart -d chrome — web-renderer html — `</p><p>Let me know if you have other useful generic commands.<br>There are a few for sure and I will extend the git repo with them over the next couple of days, but these 3 here have been annoying me for a while.</p><p>Do you have any alternative solutions or approaches?<br>Let me know!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be4bde965846" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use custom icon fonts in flutter]]></title>
            <link>https://simonauer.medium.com/how-to-use-custom-icon-fonts-in-flutter-8e5efb207277?source=rss-b88835c59a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e5efb207277</guid>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[icon-font]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[icons]]></category>
            <dc:creator><![CDATA[Simon Auer]]></dc:creator>
            <pubDate>Tue, 28 Sep 2021 11:36:02 GMT</pubDate>
            <atom:updated>2021-09-28T11:36:02.734Z</atom:updated>
            <content:encoded><![CDATA[<p>To use your Flutter Icon font from a custom package, you can follow these steps:</p><h3>create a flutter icon font</h3><p>You can use flutter icon for that https://www.fluttericon.com</p><h3>Put the file into your package</h3><p>Make sure to copy the `.ttf` file **into of the `/lib` folder**.<br>NOT just assets, as you would do in your root project.</p><p><strong>Example path:</strong></p><pre>/packages/my_awesome_fontpackage/lib/assets/MyIconFont.ttf</pre><p>(see <a href="https://zubairehman.medium.com/how-to-use-custom-fonts-images-in-flutter-package-c2d9d4bfd47a">https://zubairehman.medium.com/how-to-use-custom-fonts-images-in-flutter-package-c2d9d4bfd47a</a> )</p><h3>Add the font to your project</h3><p>Now open your package’s `pubspec.yaml` file and add the font as an asset <strong>with package path</strong>:</p><pre>flutter:<br> fonts:<br>   — family: MyIconFont<br>   fonts:<br>     — asset: packages/my_awesome_fontpackage/assets/MyIconFont.ttf</pre><p>(you might have to restart your app and bundling completely for the font to be loaded correctly and maybe run `flutter clean` just to be sure)</p><h3>Now add package declaration to font dart file</h3><p>Go into the `my_icon_font.dart` file and change the constant `_kFontPkg` there to your package name.</p><pre>class MyIconFont {<br>  MyIconFont._();</pre><pre>  static const _kFontFam = ‘MyIconFont’;<br>  static const String? _kFontPkg = ‘my_awesome_fontpackage’;</pre><pre>  static const IconData bell = …<br>  ….<br>}</pre><p>Let me know if that helped or if you have any questions. :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e5efb207277" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter ferry: LateInitializationError: Field ‘exports’ has not been initialized]]></title>
            <link>https://simonauer.medium.com/flutter-ferry-lateinitializationerror-field-exports-has-not-been-initialized-f683bb043a22?source=rss-b88835c59a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/f683bb043a22</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[problem-solving]]></category>
            <category><![CDATA[debugging]]></category>
            <dc:creator><![CDATA[Simon Auer]]></dc:creator>
            <pubDate>Fri, 25 Jun 2021 06:06:32 GMT</pubDate>
            <atom:updated>2021-06-25T06:06:32.026Z</atom:updated>
            <content:encoded><![CDATA[<p>Today I stumbled over an issue in flutter using ferry, that took me quite a while to debug and there was no information around on what the problem was.</p><p>While generating the types build_runner would end up in a loop and I got the following error message:</p><pre>flutter pub run build_runner build --delete-conflicting-outputs<br>[INFO] Generating build script...<br>[INFO] Generating build script completed, took 412ms</pre><pre>[INFO] Initializing inputs<br>[INFO] Reading cached asset graph...<br>[WARNING] Throwing away cached asset graph because the build phases have changed. This most commonly would happen as a result of adding a new dependency or updating your dependencies.<br>[INFO] Cleaning up outputs from previous builds....<br>[INFO] Cleaning up outputs from previous builds. completed, took 3ms</pre><pre>[INFO] Generating build script...<br>[INFO] Generating build script completed, took 89ms</pre><pre>[WARNING] Invalidated precompiled build script due to missing asset graph.<br>[INFO] Precompiling build script......<br>[INFO] Precompiling build script... completed, took 805ms</pre><pre>[INFO] Initializing inputs<br>[INFO] Building new asset graph...<br>[INFO] Building new asset graph completed, took 612ms</pre><pre>[INFO] Checking for unexpected pre-existing outputs....<br>[INFO] Deleting 2 declared outputs which already existed on disk.<br>[INFO] Checking for unexpected pre-existing outputs. completed, took 3ms</pre><pre>[INFO] Running build...<br>[INFO] 1.1s elapsed, 20/21 actions completed.<br>[INFO] 2.4s elapsed, 20/21 actions completed.<br>[INFO] 3.4s elapsed, 21/37 actions completed.<br>[INFO] 4.5s elapsed, 21/37 actions completed.<br>[INFO] 5.5s elapsed, 21/37 actions completed.<br>[INFO] 6.6s elapsed, 21/37 actions completed.<br>[SEVERE] gql_build:serializer_builder on lib/$lib$:</pre><pre>LateInitializationError: Field &#39;exports&#39; has not been initialized.<br>#0      LibraryReader.exports (package:analyzer/src/summary2/bundle_reader.dart)<br>#1      LinkedElementFactory.exportsOfLibrary (package:analyzer/src/summary2/linked_element_factory.dart:156:20)<br>#2      LinkedElementFactory.buildExportNamespace (package:analyzer/src/summary2/linked_element_factory.dart:51:30)<br>#3      LibraryElementImpl.exportNamespace (package:analyzer/src/dart/element/element.dart:3653:42)<br>#4      NamespaceBuilder._getExportMapping (package:analyzer/src/dart/resolver/scope.dart:271:20)<br>#5      NamespaceBuilder.getImportedElements (package:analyzer/src/dart/resolver/scope.dart:211:15)<br>#6      new PrefixScope (package:analyzer/src/dart/element/scope.dart:181:48)<br>#7      new _LibraryImportScope (package:analyzer/src/dart/element/scope.dart:295:28)<br>#8      new LibraryScope (package:analyzer/src/dart/element/scope.dart:106:15)<br>#9      LibraryElementImpl.scope (package:analyzer/src/dart/element/element.dart:3865:23)<br>#10     LibraryBuilder.buildScope (package:analyzer/src/summary2/library_builder.dart:134:21)<br>#11     Linker._computeLibraryScopes (package:analyzer/src/summary2/link.dart:170:15)<br>#12     Linker._buildOutlines (package:analyzer/src/summary2/link.dart:98:5)<br>#13     Linker.link (package:analyzer/src/summary2/link.dart:78:5)<br>#14     link (package:analyzer/src/summary2/link.dart:35:10)<br>#15     LibraryContext.load2.loadBundle (package:analyzer/src/dart/analysis/library_context.dart:172:24)<br>#16     SetMixin.forEach (dart:collection/set.dart:142:30)<br>#17     LibraryContext.load2.loadBundle (package:analyzer/src/dart/analysis/library_context.dart:110:32)<br>#18     SetMixin.forEach (dart:collection/set.dart:142:30)<br>#19     LibraryContext.load2.loadBundle (package:analyzer/src/dart/analysis/library_context.dart:110:32)<br>#20     SetMixin.forEach (dart:collection/set.dart:142:30)<br>#21     LibraryContext.load2.loadBundle (package:analyzer/src/dart/analysis/library_context.dart:110:32)<br>#22     SetMixin.forEach (dart:collection/set.dart:142:30)<br>#23     LibraryContext.load2.loadBundle (package:analyzer/src/dart/analysis/library_context.dart:110:32)<br>#24     SetMixin.forEach (dart:collection/set.dart:142:30)<br>#25     LibraryContext.load2.loadBundle (package:analyzer/src/dart/analysis/library_context.dart:110:32)<br>#26     SetMixin.forEach (dart:collection/set.dart:142:30)<br>#27     LibraryContext.load2.loadBundle (package:analyzer/src/dart/analysis/library_context.dart:110:32)<br>#28     LibraryContext.load2.&lt;anonymous closure&gt; (package:analyzer/src/dart/analysis/library_context.dart:203:7)<br>#29     PerformanceLog.run (package:analyzer/src/dart/analysis/performance_logger.dart:32:15)<br>#30     LibraryContext.load2 (package:analyzer/src/dart/analysis/library_context.dart:201:12)<br>#31     AnalysisDriver._createLibraryContext (package:analyzer/src/dart/analysis/driver.dart:1848:22)<br>#32     AnalysisDriver._computeUnitElement.&lt;anonymous closure&gt; (package:analyzer/src/dart/analysis/driver.dart:1760:28)<br>#33     PerformanceLog.run (package:analyzer/src/dart/analysis/performance_logger.dart:32:15)<br>#34     AnalysisDriver._computeUnitElement (package:analyzer/src/dart/analysis/driver.dart:1758:20)<br>#35     AnalysisDriver.performWork (package:analyzer/src/dart/analysis/driver.dart:1342:35)<br>#36     AnalysisDriverScheduler._run (package:analyzer/src/dart/analysis/driver.dart:2334:24)<br>&lt;asynchronous suspension&gt;</pre><pre>[INFO] 14.6s elapsed, 21/37 actions completed.<br>[INFO] 15.7s elapsed, 21/37 actions completed.<br>[INFO] 16.8s elapsed, 21/37 actions completed.<br>[INFO] 17.9s elapsed, 21/37 actions completed.<br>[WARNING] No actions completed for 15.1s, waiting on:<br>  - built_value_generator:built_value on lib/screens/club_entry_detail_screen.dart<br>  - built_value_generator:built_value on lib/screens/club_listing_screen.dart<br>  - built_value_generator:built_value on lib/graphql/hooks/use_get_club_query/use_get_club_query.dart<br>  - built_value_generator:built_value on lib/graphql/hooks/use_get_clubs_query/use_get_clubs_query.dart<br>  - built_value_generator:built_value on lib/widgets/club_entry_item/club_entry_item.dart<br>  .. and 11 more</pre><pre>[INFO] 19.0s elapsed, 21/37 actions completed.<br>[INFO] 20.1s elapsed, 21/37 actions completed.<br>[INFO] 21.2s elapsed, 21/37 actions completed.<br>[INFO] 22.3s elapsed, 21/37 actions completed.<br>[INFO] 23.4s elapsed, 21/37 actions completed.<br>[INFO] 24.5s elapsed, 21/37 actions completed.<br>[INFO] 25.6s elapsed, 21/37 actions completed.<br>[INFO] 26.7s elapsed, 21/37 actions completed.<br>[INFO] 27.8s elapsed, 21/37 actions completed.<br>[INFO] 28.9s elapsed, 21/37 actions completed.<br>[INFO] 30.0s elapsed, 21/37 actions completed.<br>[INFO] 31.1s elapsed, 21/37 actions completed.<br>[INFO] 32.2s elapsed, 21/37 actions completed.<br>[WARNING] No actions completed for 15.1s, waiting on:<br>  - built_value_generator:built_value on lib/screens/club_entry_detail_screen.dart<br>  - built_value_generator:built_value on lib/screens/club_listing_screen.dart<br>  - built_value_generator:built_value on lib/graphql/hooks/use_get_club_query/use_get_club_query.dart<br>  - built_value_generator:built_value on lib/graphql/hooks/use_get_clubs_query/use_get_clubs_query.dart<br>  - built_value_generator:built_value on lib/widgets/club_entry_item/club_entry_item.dart<br>  .. and 11 more</pre><pre>[INFO] 34.1s elapsed, 21/37 actions completed.<br>[INFO] 35.2s elapsed, 21/37 actions completed.<br>...<br>...<br>...</pre><p>The solution for me was to just delete the gql.g.dart and gql.dart files.<br>BUT and that is what took me longer, not just from the queries and fragments, but also the schema.xxx.dart and serializer.xxx.dart files in the root right next to my schema.graphql file.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f683bb043a22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Copy/Paste 5 minute SSL setup for docker-compose using traefik]]></title>
            <link>https://simonauer.medium.com/copy-paste-5-minute-ssl-setup-for-docker-compose-using-traefik-7f7a244d190e?source=rss-b88835c59a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f7a244d190e</guid>
            <category><![CDATA[traefik]]></category>
            <category><![CDATA[ssl]]></category>
            <category><![CDATA[lets-encrypt]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[nginx]]></category>
            <dc:creator><![CDATA[Simon Auer]]></dc:creator>
            <pubDate>Wed, 30 Dec 2020 20:02:38 GMT</pubDate>
            <atom:updated>2021-11-16T01:27:22.385Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X_zNSnjKzIaQ8rpSuxNSEQ.png" /></figure><h3>Add SSL to every docker-compose setup using traefik in no time</h3><p>We host most of our applications, but also some of our dev tools on dedicated cloud instances.<br>We have a special setup routine for these and try to save time, whenever we do it. <br>(I will gladly share our setup routine — let me know if you are interested in an article about that)</p><p>Some of these applications have custom ports, that we don’t want to expose, and all of them need SSL support of course.</p><p>With the introduction of LetsEncrypt this has gotten a lot easier, but even with nginx and certbot it always took us a while to set everything up correctly.</p><h3>Traefik to the rescue</h3><p>This is where traefik proxy comes in. :)</p><p>This let’s us host single page applications (react, angular, …), gitlab, … with ssl and port forwarding with no effort.</p><h4>What do I want to show you today?</h4><p>5 minute work to add the following features to your docker-compose:</p><ul><li><strong>SSL / https / secure serving: </strong><br>Create SSL certificate using letsencrypt automatically and serve https version of page</li><li><strong>Force https:</strong><br>Make sure that the user always is served the secure version of your page</li><li><strong>Port forwarding:</strong><br>If your application uses a custom port like ReactJS, Angular, Vue, Ruby, … make it available over standard ports</li></ul><h4>What is traefik?</h4><p>From their website:</p><blockquote>Traefik is an <a href="https://github.com/traefik/traefik">open-source</a> <em>Edge Router</em> that makes publishing your services a fun and easy experience. It receives requests on behalf of your system and finds out which components are responsible for handling them.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TqvqbB59eX8KtFh4.png" /><figcaption>Traefik takes everything from the internet and maps it correctly to your internal services</figcaption></figure><p>Basically, what it does is, it takes the configuration you either enter in a toml or directly in the docker-compose.yml file and maps everything correctly.</p><p>It can also take care of some other things like SSL certificates, https redirect, … if you want.</p><p>I am going to show you how to set this up quickly.</p><h4>Why use traefik over nginx/certbot?</h4><p>Both work well and do what they need to do.<br>The reason why we chose traefik over the latter (where it makes sense of course) is that the traefik setup is basic and fast.<br>We just copy the following additional lines in to our docker-compose file and customize 2 lines, and we are done. No complex setup of multiple conf files, that need to work together.</p><h4>Our starting point</h4><p>Let’s just imagine our current docker-compose.yml file looks as follows:</p><pre>version: &#39;3&#39;</pre><pre>services:<br>  whoami: <br>    image: &quot;myapplication/whoami&quot;<br>    container_name: &quot;myapplication&quot;<br>    restart: unless-stopped<br>    ports:<br>      - &quot;4000:4000&quot;<br>    networks:<br>      - app-network</pre><h4>How to make it awesome</h4><p>First copy the following block as it is into your docker-compose.yml file below your whoami (or whatever you call it) service.<br>Only replace your email address, which is used to report problems with renewals.</p><pre>traefik:<br>    image: &quot;traefik:v2.2&quot;<br>    container_name: &quot;traefik&quot;<br>    command:<br>      # this can be uncommented to get more information, in case something doesn&#39;t work<br>      - &quot;--log.level=DEBUG&quot;<br>      # set this to true to get access to the traefik web interface unter <a href="http://yourip:8080/">http://YOURIP:8080</a><br>      - &quot;--api.insecure=false&quot;<br>      - &quot;--providers.docker=true&quot;<br>      - &quot;--providers.docker.exposedbydefault=true&quot;<br>      - &quot;--entrypoints.web.address=:80&quot;<br>      - &quot;--entrypoints.websecure.address=:443&quot;<br>      - &quot;--certificatesresolvers.myresolver.acme.httpchallenge=true&quot;<br>      - &quot;--certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web&quot;<br>        #- &quot;--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory&quot; # uncomment this line to only test ssl generation first (to make sure you don&#39;t run into letsencrypt limits)<br>      - &quot;--certificatesresolvers.myresolver.acme.email=#####YOUR_EMAIL_ADDRESS######&quot;<br>      - &quot;--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json&quot;<br>    ports:<br>      - &quot;80:80&quot;<br>      - &quot;443:443&quot;<br>      - &quot;8080:8080&quot; # this is used for the web interface, that let&#39;s you check and monitor traefik and your configuration. It&#39;s very nice for debugging your config - only available if &quot;api.insecure&quot; above is set to true<br>    volumes:<br>      - &quot;./letsencrypt:/letsencrypt&quot;<br>      - &quot;/var/run/docker.sock:/var/run/docker.sock:ro&quot;<br>    networks:<br>      - app-network</pre><pre>    # The following is only necessary if you want to enforce https!<br>    # if you don&#39;t need that, you can just remove the labels here<br>    labels:<br>      - &quot;traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)&quot;<br>      - &quot;traefik.http.routers.http-catchall.entrypoints=web&quot;<br>      - &quot;traefik.http.routers.http-catchall.middlewares=redirect-to-https&quot;<br>      - &quot;traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https&quot;</pre><h4>Enable traefik in your application</h4><p>You have prepared traefik now. The only thing left is to tell traefik to apply it to your application.</p><blockquote>The good thing is:<br>Adding traefik to your application is a breeze</blockquote><p>We only have to add the following 4 lines to your application service as labels : (Make sure to replace #####YOUR_DOMAIN##### and #####PORT#####)</p><pre>nginx:<br>    ...<br>    labels:<br>      # this enables traefik for your service<br>      - &quot;traefik.enable=true&quot;      <br>      # this defines the url, traefik will get the ssl certificate for   - &quot;traefik.http.routers.myapplication.rule=Host(`#####YOUR_DOMAIN#####`)&quot;<br>      # this tells traefik to use https to access the website<br>      - &quot;traefik.http.routers.myapplication.entrypoints=websecure&quot;<br>      # this tells traefik to use the certresolver, that we defined above for resolving tls (in our case letsencrypt)<br>      - &quot;traefik.http.routers.myapplication.tls.certresolver=myresolver&quot;<br>      # this let&#39;s us forward the port we set above. Change this to the port you expose in your application (3000, 4000, ...) or remove the line, if your application already exposes port 80/443<br>      - &quot;traefik.http.services.myapplication.loadbalancer.server.port=#####PORT#####&quot;</pre><h4>Run it</h4><p>Now the only thing left is to run it:</p><pre>docker-compose up -d</pre><h3>That’s it — we are done</h3><p>As you can see, it is pretty easy. We always just copy paste the two parts above into our docker-compose file, change email, domain and port and we are done.</p><p>Fully working ssl setup, that renews automatically and just works!</p><p><strong>Here is the full file:</strong></p><pre>version: &#39;3&#39;</pre><pre>services:<br>  whoami: <br>    image: &quot;myapplication/whoami&quot;<br>    container_name: &quot;myapplication&quot;<br>    restart: unless-stopped<br>    ports:<br>      - &quot;4000:4000&quot;<br>    networks:<br>      - app-network<br>    labels:<br>      - &quot;traefik.enable=true&quot;      <br>      - &quot;traefik.http.routers.myapplication.rule=Host(`mydomain.at`)&quot;<br>      - &quot;traefik.http.routers.myapplication.entrypoints=websecure&quot;<br>      - &quot;traefik.http.routers.myapplication.tls.certresolver=myresolver&quot;<br>      - &quot;traefik.http.services.myapplication.loadbalancer.server.port=4000&quot;</pre><pre>traefik:<br>    image: &quot;traefik:v2.2&quot;<br>    container_name: &quot;traefik&quot;<br>    command:<br>#      - &quot;--log.level=DEBUG&quot;<br>      - &quot;--api.insecure=false&quot;<br>      - &quot;--providers.docker=true&quot;<br>      - &quot;--providers.docker.exposedbydefault=true&quot;<br>      - &quot;--entrypoints.web.address=:80&quot;<br>      - &quot;--entrypoints.websecure.address=:443&quot;<br>      - &quot;--certificatesresolvers.myresolver.acme.httpchallenge=true&quot;<br>      - &quot;--certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web&quot;<br>        #- &quot;--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory&quot;<br>      - &quot;--certificatesresolvers.myresolver.acme.email=webmaster@example.com&quot;<br>      - &quot;--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json&quot;<br>    ports:<br>      - &quot;80:80&quot;<br>      - &quot;443:443&quot;<br>      - &quot;8080:8080&quot;<br>    volumes:<br>      - &quot;./letsencrypt:/letsencrypt&quot;<br>      - &quot;/var/run/docker.sock:/var/run/docker.sock:ro&quot;<br>    networks:<br>      - app-network<br>    labels:<br>      - &quot;traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)&quot;<br>      - &quot;traefik.http.routers.http-catchall.entrypoints=web&quot;<br>      - &quot;traefik.http.routers.http-catchall.middlewares=redirect-to-https&quot;<br>      - &quot;traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https&quot;</pre><h4>Let me know</h4><p>Let me know if it works for you, if you have questions or if there is anything else you are interested in. :)</p><p>Also follow me here and on twitter for more content regarding devops, react, laravel, flutter and stuff like this. ;)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f7a244d190e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy PHP/Laravel applications using Gitlab CI/CD]]></title>
            <link>https://simonauer.medium.com/deploy-php-laravel-applications-using-gitlab-ci-cd-cbd7cb2c6a2e?source=rss-b88835c59a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/cbd7cb2c6a2e</guid>
            <category><![CDATA[gitlab-ci]]></category>
            <category><![CDATA[gitlab]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[deployment]]></category>
            <dc:creator><![CDATA[Simon Auer]]></dc:creator>
            <pubDate>Tue, 01 Dec 2020 16:23:41 GMT</pubDate>
            <atom:updated>2020-12-01T16:28:04.214Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SUoRfKmG0JDukILmo5EOYw.png" /></figure><p>We make sure our PHP/laravel applications are always in shape. Here is how to setup your servers and gitlab to get an awesome multi-environment deployment.</p><h3>Intro</h3><p>I am a big fan of process optimization, and I love trying out new ways to develop, deploy, and work on big software projects.</p><p>As head of a software development agency in Vienna, Austria, I was lucky enough to have worked on over 100 big web and mobile applications over the last 15 years with startups, international companies, and other amazing developers to try, fail and refine these processes over and over again.</p><p>The following approach is meant to share the learnings and our current solution with you.</p><p>To get this out of the way: If you have feedback, suggestions on that, please share them with us in the comments! I would love to hear your thoughts and the approach that works well for you.</p><p>We use GitLab for continuous integration/deployment, but this should also work with other tools like Jenkins, ….</p><p><strong>Requirements:</strong><br>To go along with this post, you have to have the following things already setup:</p><ul><li>A gitlab instance or an account on gitlab.com</li><li><a href="https://docs.gitlab.com/runner/install/">A gitlab ci runner</a> (click to go to gitlab docs, about setting it up)</li><li>3 webspace on a server</li><li>A PHP/laravel project ready to be deployed</li></ul><h3>Preparation</h3><p>To prepare our PHP project for our deployment workflow, we have to prepare 3 Servers/Webspaces:<br>(we will refer to these as “environments” from now on)</p><p><strong>Environments:</strong></p><ul><li>Development (only internally to test and review)</li><li>Staging (for the client to test and review)</li><li>Production (final system for end-users)</li></ul><p><strong>They will correlate with our branches:</strong></p><ul><li>development (= development environment)</li><li>master (= staging environment)</li><li>production (= production environment)</li></ul><p>To find out why exactly 3 environments and how this works, check out my other blog entry on that topic:<br><a href="https://simonauer.medium.com/how-to-set-up-your-staging-environment-for-web-applications-480e0138e620">https://simonauer.medium.com/how-to-set-up-your-staging-environment-for-web-applications-480e0138e620</a></p><p><strong>Domain Conventions for environments:</strong></p><p>To make sure this process and domains are easy to remember for everyone in the team, we always use the same domain patterns.</p><p>For this reason, we have registered 2 domains for our internal use as staging and development domain:<br>(the ones used here are just examples)</p><ul><li>*.stagingdomain.at (for example — for staging)</li><li>*.devdomain.at (for example — development)</li></ul><p><strong>Examples:</strong></p><ul><li>Development: {PROJECT_PRODUCTION_DOMAIN_WITH_DASH}<strong>.devdomain.at<br></strong>( example: <a href="http://my-domain-com.in-dev.jetzt/">my-domain-com.</a>devdomain.at)</li><li>Staging: {PROJECT_PRODUCTION_DOMAIN_WITH_DASH}<strong>.stagingdomain.at<br></strong>( example: <a href="http://my-domain-com.in-dev.jetzt/">my-domain-com.s</a>tagingdomain.at )</li><li>Production: {PROJECT_PRODUCTION_DOMAIN}<br>( example: <a href="http://my-domain.com/">my-domain.com</a> )</li></ul><p>So every domain that ends in “devdomain.at” is a development domain.</p><p>And every domain that ends in “stagingdomain.at” is a staging domain.</p><p>Now let’s get started with setting up your servers and gitlab to deploy your PHP projects.</p><p>Make sure that you have SSH access to the environment servers and you have the credentials.</p><h3>Prepare server login</h3><h4>SSH Key for login exists</h4><p>If you have a server with login via ssh key enabled, we should be fine, and you can use the public part of the key in the next steps in the GitLab-ci variables.</p><h4>SSH Key doesn’t exist</h4><p>If we either don’t have an ssh key for login or have a server accessible via password, we would like to do the deployment using an ssh key.</p><p>So let’s generate one: (you have to do this for all of the servers above if they are on different access accounts)</p><p><strong>Create a new ssh key for every environment: (unless they are accessible with the same account anyway)</strong></p><p>Run the following command on your local bash:</p><pre>ssh-keygen -t rsa -b 4096 -C &quot;deploy@{PROJECT_AND_ENVIRONMENT_URL}&quot;</pre><p>You will now be asked:</p><blockquote><em>Enter file in which to save the key (/home/user/.ssh/id_rsa):</em></blockquote><p>We will use “.{/PROJECT}_deploy&quot; for now.</p><p>(replace {PROJECT} with your project name, of course)</p><p>(this will save two files in your current directory “{PROJECT}_deploy” (private key part — saved on the server in next step) and “{PROJECT}_deploy.pub” (public part — used as GitLab CI variable)</p><p>I would recommend using a name that lets you easily find and delete it afterward.</p><p>(NEVER accept the default name because it will overwrite your current ssh key, which you might use in GitLab, …)</p><p>It will then ask you for a password. ALWAYS leave this field blank!!</p><p><strong>Now upload ssh key to server:</strong></p><p>Now that we have generated an ssh key, we are ready to tell our server to accept this SSH Key in the future.</p><p>We do this by rerunning the following command in your local bash:</p><pre>ssh-copy-id -i ./{PROJECT}_deploy {SERVER_SSH_USER}@{SERVER_SSH_HOST} -p{PORT}</pre><p>Now your ssh key should have been copied to the server, and you can access the server by calling the following URL <strong>and</strong> <strong>not</strong> having to enter a password at all.</p><p>(to test this, you have to copy the two files into your ~/.ssh directory)</p><pre>ssh {SERVER_SSH_USER}@{SERVER_SSH_HOST} -p{PORT}</pre><h3>Prepare folder structure</h3><p>As a convention, we always save laravel API projects into an api subfolder on the server.</p><p>This folder then contains the 2 test environments (development, staging) on the dev server (to save server instances), and we will put the project api folder directly on the production server. (for security reasons, this will be its own folder.)</p><p>So here is the folder structure for our projects:</p><p><strong>Testing Server:</strong></p><pre>// our php project folders<br>- api<br>--- development<br>------- current (contains the project)<br>------- shared<br>--- staging<br>------- current (contains the project)<br>------- shared<br></pre><pre>// other project folders (frontend, ...)<br>- frontend<br>- additional_clients</pre><p><strong>Production Server:</strong></p><pre>// our php project folders<br>- api<br>--- current (contains the project)<br>--- shared<br></pre><pre>// other project folders (frontend, ...)<br>- frontend<br>- additional_clients</pre><blockquote>Sidenote: <br>As you can see, we put the environments into a folder called api. The reason for that is, that we also sometimes host other clients (static react /vue applications) on the same server. If you only have the PHP application, there is no need for that and you can just put the curent and shared folders in the root dir.</blockquote><h3>Deployment of laravel</h3><p>To deploy our laravel applications, we use the package:</p><p><a href="https://github.com/lorisleiva/laravel-deployer">https://github.com/lorisleiva/laravel-deployer</a></p><p>It will take care of zero-downtime deployments and handle all the details for us.</p><p>We can use the following blueprint for our</p><h3>Add gitlab-ci file to your projects.</h3><p>Now all that is left is to create a gitlab-ci file and configure it.</p><p>Let’s get started with the ci file.</p><p>Create the following file in the root of your git project and call it <br>gitlab-ci.yml :</p><pre>image: lorisleiva/laravel-docker:7.4 # the number here resembles the php version, so you might have to adjust it to 8.0, ...</pre><pre>## templates</pre><pre>.init_ssh: &amp;init_ssh |<br>  mkdir -p ~/.ssh<br>  chmod 700 ~/.ssh<br>  [[ -f /.dockerenv ]] &amp;&amp; echo -e &quot;Host *\n\tStrictHostKeyChecking no\n\n&quot; &gt; ~/.ssh/config<br></pre><pre>.change_file_permissions: &amp;change_file_permissions |<br>  find . -type f -not -path &quot;./vendor/*&quot; -exec chmod 664 {} \;<br>  find . -type d -not -path &quot;./vendor/*&quot; -exec chmod 775 {} \;<br></pre><pre><br>### the stages we go through</pre><pre>stages:<br>  - build<br>  - test<br>  - deploy</pre><pre>## prepare</pre><pre>composer:<br>  stage: build<br>  cache:<br>    key: ${CI_COMMIT_REF_SLUG}-composer<br>    paths:<br>      - vendor/<br>  script:<br>    - *init_ssh<br>    - composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts<br>  only:<br>    - master<br>    - production<br>    - development</pre><pre>## DEPLOYMENT<br></pre><pre>deploy_development:<br>  stage: deploy<br>  script:<br>    - eval $(ssh-agent -s) &amp;&amp; echo &quot;$SSH_PRIVATE_KEY&quot; | tr -d &#39;\r&#39; | ssh-add - &gt; /dev/null<br>    - *init_ssh<br>    - *change_file_permissions<br>    - php artisan deploy {MY_DOMAIN}.devserver.at -s upload<br>  environment:<br>    name: development<br>    url: <a href="https://{my_domain}.in-dev.jetzt/">https://{MY_DOMAIN}.</a>devserver.at<br>  only:<br>    - development</pre><pre>deploy_staging:<br>  stage: deploy<br>  script:<br>    - eval $(ssh-agent -s) &amp;&amp; echo &quot;$SSH_PRIVATE_KEY&quot; | tr -d &#39;\r&#39; | ssh-add - &gt; /dev/null<br>    - *init_ssh<br>    - *change_file_permissions<br>    - php artisan deploy {MY_DOMAIN}.stagingserver.at -s upload<br>  environment:<br>    name: staging<br>    url: <a href="https://{my_domain}.stage.jetzt/">https://{MY_DOMAIN}.</a>stagingserver.at<br>  only:<br>    - master</pre><pre>deploy_production:<br>  stage: deploy<br>  script:<br>    - eval $(ssh-agent -s) &amp;&amp; echo &quot;$SSH_PRIVATE_KEY&quot; | tr -d &#39;\r&#39; | ssh-add - &gt; /dev/null<br>    - *init_ssh<br>    - *change_file_permissions<br>    - php artisan deploy {MY_DOMAIN} -s upload<br>  environment:<br>    name: production<br>    url: <a href="https://{my_domain}/">https://{MY_DOMAIN}</a><br>  only:<br>    - production</pre><h3>Add credentials to CI/CD Deployment variables.</h3><p>Already everything is set up, and we are ready to set our credentials in GitLab ci.</p><p>To do this, open your GitLab interface and go to your repository.</p><p><strong>Create different environments in GitLab Operations:</strong></p><p>Environments let us monitor each of our environments&#39; deployment status and define the same CI/CD Variable name with different values for different environments.</p><p>You can find your environments in your repository in the left menu under:</p><p>Operations -&gt; Environments</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/0*LC5HR4OIwCagIiBW.png" /></figure><p>No, go ahead and add new environments for each of the environments:</p><p>(You can find the New environment button on the top right on the environments overview)</p><ul><li>development</li><li>master</li><li>production</li></ul><p>Just enter the environment name and the dedicated URL, which can be used to test it later.</p><p>(this will add a button to access the correct environment in the browser easily)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/0*GByb9ZqLrZwNaqH6.png" /></figure><p><strong>Now add the following variables:</strong></p><p>On the left menu, you need to go to Settings -&gt; CI/CD -&gt; Variables .</p><p>Now add a protected variable SSH_PRIVATE_KEY for all of the environments and select the correct environment scope from the list.</p><blockquote>tipp:</blockquote><blockquote>if you click on the “environment scope” dropdown, it will only show you the selected value by default. You have the little “x” to clear the selection and then you see all your created environments in the list — no idea, why they did it like that, but it is confusing if you don’t know.</blockquote><p>As a value, use the content of the private key file:</p><pre>cat ./{PROJECT}_deploy</pre><p>It should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/0*7HD8_00FRZP5yE5U.png" /></figure><h3>Run Pipeline and enjoy</h3><p>Now everything should be ready, and you can try out your awesome new deployment process.</p><p>Just merge some changes into the branch you want to deploy:</p><ul><li>development</li><li>staging</li><li>production</li></ul><h3>Gitlab Pipeline with PHPunti and code style checking</h3><p>Well, that’s it. Everything should work fine now and be ready for perfect zero-downtime deployments and an awesome workflow, but I got more for you ;)</p><p>Let’s take it to the next level and add automated quality assurance into the pipeline like code style check and PHPUnit.</p><p><a href="https://simonauer.medium.com/a-working-gitlab-laravel-pipeline-with-phpunit-code-style-and-more-ddf54f988785">A working gitlab Laravel pipeline with PHPUnit, code style, and more</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/0*MXgg4uWRwiDc3dN2.gif" /><figcaption>Just wow!</figcaption></figure><p>Thank you very much for taking the time to read this.</p><p>If you went this far down, I would really appreciate your comment and input.<br>How are you guys doing it?</p><p>I will post more about DevOps, deployment, coding (especially react, flutter and laravel) in the future, so follow me to read more ;)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cbd7cb2c6a2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>