<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: xx1196</title>
    <description>The latest articles on DEV Community by xx1196 (@xx1196).</description>
    <link>https://dev.to/xx1196</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F687727%2F7ba444fa-8407-4fc9-b26a-d1e307c88cf6.png</url>
      <title>DEV Community: xx1196</title>
      <link>https://dev.to/xx1196</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/xx1196"/>
    <language>en</language>
    <item>
      <title>Embarking on the Digital Ocean Journey: Unleashing the Power of CLI with doctl</title>
      <dc:creator>xx1196</dc:creator>
      <pubDate>Sun, 18 Feb 2024 00:03:09 +0000</pubDate>
      <link>https://dev.to/xx1196/embarking-on-the-digital-ocean-journey-unleashing-the-power-of-cli-with-doctl-44ap</link>
      <guid>https://dev.to/xx1196/embarking-on-the-digital-ocean-journey-unleashing-the-power-of-cli-with-doctl-44ap</guid>
      <description>&lt;h3&gt;
  
  
  Step 1: Install &lt;code&gt;doctl&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;First, you will need to install &lt;code&gt;doctl&lt;/code&gt; on your local machine. You can download the binary from the official website or use a package manager if you are on a supported system.&lt;/p&gt;

&lt;h4&gt;
  
  
  Linux/Mac:
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-L&lt;/span&gt; https://github.com/digitalocean/doctl/releases/latest/download/doctl-&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;uname&lt;/span&gt; &lt;span class="nt"&gt;-s&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;-&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;uname&lt;/span&gt; &lt;span class="nt"&gt;-m&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt; &lt;span class="nt"&gt;-o&lt;/span&gt; /usr/local/bin/doctl
&lt;span class="nb"&gt;chmod&lt;/span&gt; +x /usr/local/bin/doctl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Windows:
&lt;/h4&gt;

&lt;p&gt;Download the latest &lt;code&gt;doctl&lt;/code&gt; executable from the official website and install it following the instructions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Create a Digital Ocean Account
&lt;/h3&gt;

&lt;p&gt;Click below to create a free account with credits to spend within digital ocean&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.digitalocean.com/?refcode=496c78a72997&amp;amp;utm_campaign=Referral_Invite&amp;amp;utm_medium=Referral_Program&amp;amp;utm_source=badge" rel="noopener noreferrer"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fweb-platforms.sfo2.cdn.digitaloceanspaces.com%2FWWW%2FBadge%25201.svg" alt="DigitalOcean Referral Badge"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Create a Digital Ocean Account API key
&lt;/h3&gt;

&lt;p&gt;Log in to your Digital Ocean account and navigate to the "API" &lt;br&gt;
&lt;a href="https://cloud.digitalocean.com/account/api/tokens" rel="noopener noreferrer"&gt;https://cloud.digitalocean.com/account/api/tokens&lt;/a&gt;&lt;br&gt;
section in your account settings. Generates a new API key with sufficient permissions to access and manage container registries.&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 4: Configure &lt;code&gt;doctl&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Open a terminal and run the following command to configure &lt;code&gt;doctl&lt;/code&gt; with your API key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;doctl auth init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Follow the instructions to enter your API key and select your preferred settings.&lt;br&gt;
Absolutely! Here's the closing for your post:&lt;/p&gt;




&lt;p&gt;And that wraps it up! With &lt;code&gt;doctl&lt;/code&gt; now installed, you're all set to make the most of Digital Ocean directly from the command line. In the upcoming posts, we'll delve into the myriad possibilities and capabilities that Digital Ocean offers through the terminal. From resource management to advanced deployments, I'll guide you through the powerful tools that will help you optimize your cloud experience. Stay tuned to discover how to elevate your projects to new heights with Digital Ocean! 🚀🌐 &lt;/p&gt;




&lt;p&gt;I hope you find this closing suitable for your post! If you need anything else, feel free to ask!&lt;/p&gt;

</description>
      <category>digitalocean</category>
      <category>cli</category>
    </item>
    <item>
      <title>Graphql in laravel</title>
      <dc:creator>xx1196</dc:creator>
      <pubDate>Fri, 20 Aug 2021 19:11:06 +0000</pubDate>
      <link>https://dev.to/xx1196/graphql-in-laravel-40g4</link>
      <guid>https://dev.to/xx1196/graphql-in-laravel-40g4</guid>
      <description>&lt;p&gt;Hi, my name is Andrés Felipe, on this post we are make a server graphql with laravel.&lt;/p&gt;

&lt;h2&gt;
  
  
  Requisites
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Php v8&lt;/li&gt;
&lt;li&gt;Composer v2&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Craft Laravel app
&lt;/h2&gt;

&lt;p&gt;To create a laravel proyect run this commando in console&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;composer create-project laravel/laravel graphql-server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Install Graphql libraries
&lt;/h2&gt;

&lt;p&gt;Inside in our proyect laravel run the following command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;composer require nuwave/lighthouse
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This command will install the graphql for laravel and php.&lt;/p&gt;

&lt;p&gt;Mext step run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan vendor:publish --tag=lighthouse-config
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;to publish the config the graphql in&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;config/lighthouse.php
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and add the graphql uri to cors in&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;config/cors.php

'paths' =&amp;gt; ['api/*', 'graphql', 'sanctum/csrf-cookie'],
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next step publish the default schema where you add the code for graphql.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install Graphql Playground
&lt;/h2&gt;

&lt;p&gt;The playground is a enviroment for develop stage for test your queries or mutation below the pass a code in your front whit apollo.&lt;/p&gt;

&lt;p&gt;For install this playground run de follow command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;composer require mll-lab/laravel-graphql-playground
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When the installation is finished it will be published the route&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/graphql-playground
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and publish the config with&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan vendor:publish --tag=graphql-playground-config
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;this will public the config the playground in&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;config/graphql-playground.php
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The url for consume the api is&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/graphql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this moment we have:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The libraries for laravel the graphql.&lt;/li&gt;
&lt;li&gt;The playground for test our api graphql.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;it would look something like this&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdnqju6oh7islw8aqkt09.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdnqju6oh7islw8aqkt09.png" alt="Playground" width="800" height="344"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Finish
&lt;/h2&gt;

&lt;p&gt;In other post, we a create a api whit &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Users&lt;/li&gt;
&lt;li&gt;Posts&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;when one user have many posts like a social network&lt;/p&gt;

&lt;p&gt;This is my firsts post, i hope this help you and i would aprreciatte if you comment,rate and follow me&lt;/p&gt;

&lt;p&gt;TANKS.&lt;/p&gt;

</description>
      <category>graphql</category>
      <category>laravel</category>
      <category>playground</category>
    </item>
  </channel>
</rss>
