<?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: Alti</title>
    <description>The latest articles on DEV Community by Alti (@altierii).</description>
    <link>https://dev.to/altierii</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%2F845985%2Ff90d1d39-e0b1-476e-a01a-a32a75e8fbbc.jpeg</url>
      <title>DEV Community: Alti</title>
      <link>https://dev.to/altierii</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/altierii"/>
    <language>en</language>
    <item>
      <title>How to install Tailwind CSS with Svelte + Vite!</title>
      <dc:creator>Alti</dc:creator>
      <pubDate>Wed, 29 Jun 2022 05:27:41 +0000</pubDate>
      <link>https://dev.to/altierii/how-to-install-tailwind-css-with-svelte-vite-1kj6</link>
      <guid>https://dev.to/altierii/how-to-install-tailwind-css-with-svelte-vite-1kj6</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;If you read the title, you know what the post is about. Let's not waste any time here and jump straight into it!&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1
&lt;/h3&gt;

&lt;p&gt;Set up a Vite + Svelte project using documentation on the &lt;a href="https://vitejs.dev/guide/"&gt;Vite&lt;/a&gt; or &lt;a href="https://svelte.dev"&gt;Svelte&lt;/a&gt; website.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2
&lt;/h3&gt;

&lt;p&gt;Run the following commands.&lt;br&gt;
&lt;code&gt;npm install -D tailwindcss postcss autoprefixer&lt;/code&gt;&lt;br&gt;
&lt;code&gt;npx tailwindcss init tailwind.config.cjs -p&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 3
&lt;/h3&gt;

&lt;p&gt;In the newly created &lt;code&gt;tailwind.config.cjs&lt;/code&gt; file, add this line of code.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;module&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;exports&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="na"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./src/**/*.{html,js,svelte,ts}&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
  &lt;span class="na"&gt;theme&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;extend&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;
  &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="na"&gt;plugins&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then make an &lt;code&gt;app.css&lt;/code&gt; file in the src directory with this code in it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="k"&gt;@tailwind&lt;/span&gt; &lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;@tailwind&lt;/span&gt; &lt;span class="n"&gt;components&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;@tailwind&lt;/span&gt; &lt;span class="n"&gt;utilities&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 4
&lt;/h3&gt;

&lt;p&gt;Then in your &lt;code&gt;main.js&lt;/code&gt; file, make sure to include the &lt;code&gt;app.css&lt;/code&gt; file using an import statement.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./app.css&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then all you need to do is run your code and make sure everything is working.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;run&lt;/span&gt; &lt;span class="nx"&gt;dev&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>svelte</category>
      <category>webdev</category>
      <category>vite</category>
      <category>tailwindcss</category>
    </item>
    <item>
      <title>HTTP Requests for Beginners.</title>
      <dc:creator>Alti</dc:creator>
      <pubDate>Wed, 15 Jun 2022 00:43:04 +0000</pubDate>
      <link>https://dev.to/altierii/http-requests-for-beginners-48d5</link>
      <guid>https://dev.to/altierii/http-requests-for-beginners-48d5</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;If you are like me, HTTP requests can be confusing at first. But hopefully with this guide, things might be a little easier for you when learning requests and how to use them.&lt;/p&gt;

&lt;p&gt;A helpful tool for learning and practicing HTTP requests in my experience would be &lt;a href="https://requestbin.com"&gt;Requestbin.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, let's get started with the methods.&lt;/p&gt;

&lt;h2&gt;
  
  
  GET
&lt;/h2&gt;

&lt;p&gt;GET is used when reading or retrieving resources. When the GET request is sucessful, it will return a response with the resource you requested.&lt;/p&gt;

&lt;h2&gt;
  
  
  POST
&lt;/h2&gt;

&lt;p&gt;POST sends data to the server, usually to create a resource or update an existing resource.&lt;/p&gt;

&lt;h2&gt;
  
  
  PUT
&lt;/h2&gt;

&lt;p&gt;PUT also creates a resource or updates an existing resource similar to POST, but PUT requests can be called multiple times and will remain the same. This means that PUT requests are idempotent.&lt;/p&gt;

&lt;h2&gt;
  
  
  DELETE
&lt;/h2&gt;

&lt;p&gt;DELETE will remove the requested resource.&lt;/p&gt;

&lt;h2&gt;
  
  
  Other HTTP request methods
&lt;/h2&gt;

&lt;p&gt;Here are more resources you can use to learn HTTP methods, including the ones that I did not cover in this post.&lt;/p&gt;

&lt;p&gt;You can read about these methods here.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods"&gt;MDN - Request Methods&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://rapidapi.com/blog/api-glossary/http-request-methods/"&gt;Rapid API - HTTP Request Methods&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And more sources all across the web can help!&lt;/p&gt;

</description>
      <category>api</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
