<?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: Sparvero12</title>
    <description>The latest articles on DEV Community by Sparvero12 (@sparvero12).</description>
    <link>https://dev.to/sparvero12</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%2F807070%2F9ecd7f64-ea5d-4fb8-93de-d97dffd630b3.png</url>
      <title>DEV Community: Sparvero12</title>
      <link>https://dev.to/sparvero12</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sparvero12"/>
    <language>en</language>
    <item>
      <title>How to Utilize Vercel</title>
      <dc:creator>Sparvero12</dc:creator>
      <pubDate>Sun, 01 May 2022 22:08:52 +0000</pubDate>
      <link>https://dev.to/sparvero12/how-to-utilize-vercel-5a8l</link>
      <guid>https://dev.to/sparvero12/how-to-utilize-vercel-5a8l</guid>
      <description>&lt;h2&gt;
  
  
  What is Vercel
&lt;/h2&gt;

&lt;p&gt;Simply put, Vercel is an easy to use and very powerful tool to build, launch deploy and maintain any kind of site you want. Vercel is a "Function as a Service" platform which is a type of cloud-computing service that allows the execution of code in response to triggers without having to go through all the steps associated with building and launching microservices. Of course, the service is "free" but a paid membership gives you access to more features, however, a free account should suffice for most users needs. &lt;/p&gt;

&lt;h2&gt;
  
  
  Get Started
&lt;/h2&gt;

&lt;p&gt;To get started simply go to vercel.com and create an account. Since I primarily use github, I created an account with my github account. After you create your account, you'll be at the vercel dashboard.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hMdA9GcO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ygddd24g1veq2relkc83.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hMdA9GcO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ygddd24g1veq2relkc83.PNG" alt="Image description" width="880" height="445"&gt;&lt;/a&gt;&lt;br&gt;
Next simply click the New Project button. Immediately afterward you will be asked which repo you want to import.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--t_zOSrDD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/onvsos3kcean8ga5ic9v.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--t_zOSrDD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/onvsos3kcean8ga5ic9v.PNG" alt="Image description" width="880" height="959"&gt;&lt;/a&gt;&lt;br&gt;
Vercel will then present a page with configurations you can alter, this includes things such as the root directory, build and output settings and Environment variables. After setting the configurations the way you like, simply click the blue Deploy button and watch as Vercel deploys your website for you.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Wdcu1Nxy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vivaclc8ny2oh1y660xs.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Wdcu1Nxy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vivaclc8ny2oh1y660xs.PNG" alt="Image description" width="880" height="445"&gt;&lt;/a&gt;&lt;br&gt;
Just like that its done!&lt;br&gt;
&lt;a href="https://eleventy-base-blog-roan.vercel.app"&gt;Link&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  My Experience with Vercel
&lt;/h2&gt;

&lt;p&gt;My background in web development is very limited, I only started with Micro front end services a few months ago. That's my background, someone who never used a service like this before and never needed to. However, Vercel was like a dream to use. I simply imported my repo and clicked deploy and it worked! It was just simple and it worked. If I continue to need to deploy sites or test components, I will always use vercel before any other method.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Vercel over other CI/CD Methods?
&lt;/h2&gt;

&lt;p&gt;Simply put the answer is simplicity. Vercel allows you to skip multiple steps, which eliminates the chance that errors occur during that step. It allows developers to deploy and test web components in easiest way possible, and when deployment and testing is easier, development itself gets slightly easier as well. After all, isn't that what web developers want? Something to make their lives easier that actually works?&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Getting Started with 11ty</title>
      <dc:creator>Sparvero12</dc:creator>
      <pubDate>Sun, 01 May 2022 20:17:04 +0000</pubDate>
      <link>https://dev.to/sparvero12/getting-started-with-11ty-2180</link>
      <guid>https://dev.to/sparvero12/getting-started-with-11ty-2180</guid>
      <description>&lt;h2&gt;
  
  
  What is 11ty?
&lt;/h2&gt;

&lt;p&gt;11ty advertises itself as an easy static site generator. After getting used to the tool, I would have to say this is not a false advertisement. 11ty is an extremely powerful tool for creating static sites(anything from blogs to archives and full sites) in a very easy way.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hello World by 11ty
&lt;/h2&gt;

&lt;p&gt;The first site I made using 11ty was incredibly basic, simply saying Hello world, however, the process used to make this simple 11ty site from scratch proved vital to figuring out how to use templates for more advanced websites. I followed this incredibly helpful guide guide to get started.&lt;br&gt;
The first step is to make a directory and install npm as usual. Next, 11ty needs a package.json file to install, so create one in your new directory using &lt;code&gt;npm init -y&lt;/code&gt;&lt;br&gt;
you will then install 11ty into the local directory using &lt;code&gt;npm install --save-dev @11ty/eleventy&lt;/code&gt; then run 11ty by entering &lt;code&gt;npx @11ty/eleventy&lt;/code&gt; in your terminal. After installing the template files you'll use, I did &lt;code&gt;echo '&amp;lt;!doctype html&amp;gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Page title&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&amp;lt;p&amp;gt;Hello World&amp;lt;/p&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;' &amp;gt; index.html&lt;/code&gt; and then &lt;code&gt;echo '# Page header' &amp;gt; README.md&lt;/code&gt; After doing this run 11ty again. &lt;/p&gt;

&lt;p&gt;Now you can go in and play with your blog and make it say whatever you want to. When you're done, &lt;code&gt;npx @11ty/eleventy --serve&lt;/code&gt; will launch your static site on local host.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--oFT0YAwQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lgmttrb8sgrwcupkfg1u.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oFT0YAwQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lgmttrb8sgrwcupkfg1u.PNG" alt="Image description" width="880" height="459"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://github.com/Sparvero12/11tyHelloWorld"&gt;Hello World Repo&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Using a template
&lt;/h2&gt;

&lt;p&gt;For the second site I made using 11ty, I used &lt;a href="https://github.com/11ty/eleventy-base-blog"&gt;this repo&lt;/a&gt; which is a more advanced 11ty template that can be customized. After following the instructions in the README.md file and edited all the markdown I came up with this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3SvSibfs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tai7zcbnhwxyvxedlkzi.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3SvSibfs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tai7zcbnhwxyvxedlkzi.PNG" alt="Image description" width="880" height="470"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://github.com/Sparvero12/eleventy-base-blog"&gt;Github Repo&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  HAX11ty
&lt;/h2&gt;

&lt;p&gt;The incredible resource that is HAX also has an 11ty website template that can be used, this can be found &lt;a href="https://github.com/elmsln/hax11ty"&gt;here&lt;/a&gt;&lt;br&gt;
This template is incredibly useful as it provides far more customization and deployment options then the previous template. The instructions provided in the template walk you through how to edit the files and was incredibly helpful. Especially when you're still getting used to using 11ty.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jPbnrFjN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hgq6vzluxu9wnfr5vd4m.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jPbnrFjN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hgq6vzluxu9wnfr5vd4m.PNG" alt="Image description" width="880" height="455"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://github.com/Sparvero12/hax11ty"&gt;Github Repo&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  11ty vs HAX11ty
&lt;/h2&gt;

&lt;p&gt;There is a noticable difference between these two templates. HAX11ty is far more advanced and gives you many more options. However, with complexity comes the potential for issues. I had a more difficult time getting my site to launch with HAX11ty as opposed to the 11ty template. This is not a reflection of the HAX11ty repo, rather the abundance of options and features made it easier for someone like me who was learning the tool to make a mistake more easily. Once the site launched however, I was far happier with the appearance and functionality of HAX11ty&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Getting Started with Docker</title>
      <dc:creator>Sparvero12</dc:creator>
      <pubDate>Mon, 21 Mar 2022 22:14:32 +0000</pubDate>
      <link>https://dev.to/sparvero12/getting-started-with-docker-2pf4</link>
      <guid>https://dev.to/sparvero12/getting-started-with-docker-2pf4</guid>
      <description>&lt;h2&gt;
  
  
  What is Docker?
&lt;/h2&gt;

&lt;p&gt;Docker is a very powerful tool that allows users to containerize applications. As for what that means, Docker defines Containers as &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A standard unit of software that packages code and all dependencies so the application runs quickly and reliably from one computing environment to the other.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Essentially, it allows a developer to quickly package and deploy applications across environments. &lt;/p&gt;

&lt;h2&gt;
  
  
  Getting started.
&lt;/h2&gt;

&lt;p&gt;Docker is a powerful tool yet has its own learning curve as with all programs. &lt;br&gt;
to get started I'll be walking through using Docker with a news gathering API.&lt;br&gt;
First, go to Play with Docker&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Create a new instance in the Docker Lab&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;in the Docker terminal &lt;code&gt;git clone https://github.com/heyMP/news-api-workshop &amp;amp;&amp;amp; cd news-api-workshop&lt;/code&gt;&lt;br&gt;
this will get you the repo needed to do this activity.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;next you will need to cd into the repo. to do this run &lt;code&gt;cd news-api-workshop&lt;br&gt;
&lt;/code&gt; then run &lt;code&gt;cp dot.env.example dot.env&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Above the Docker terminal there is a button that says edit, click that and navigate to the dot.env file you just created. as you'll see, you need an API key. to get this go to newsapi.org and sign up for free. When it gives you this key, copy it into the dot.env file where it says API key and press save&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2eetTXlo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/usxmoad75kw64e0gay4l.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2eetTXlo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/usxmoad75kw64e0gay4l.PNG" alt="Image description" width="880" height="349"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Now, go back to the Docker lab and press the port button and enter 4000. this should bring up a blank web page with some error message, thats OK! just copy the url from that page and paste it in the dot.env file where it says NEWS_ENDPOINT&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now, in the Docker terminal &lt;code&gt;run docker-compose up&lt;/code&gt; after the command finishes it should look like this:&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6Uujko76--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/snut4y7bptdncsljnvzv.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6Uujko76--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/snut4y7bptdncsljnvzv.PNG" alt="Image description" width="880" height="418"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Now click on the port 80 button that appeared at the top of the lab, this will bring you to the functioning API and look like this:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yVmcMi31--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/886w066f2sr0n9fkynpx.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yVmcMi31--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/886w066f2sr0n9fkynpx.PNG" alt="Image description" width="880" height="627"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>API Connections on the Back End.</title>
      <dc:creator>Sparvero12</dc:creator>
      <pubDate>Tue, 01 Feb 2022 16:05:42 +0000</pubDate>
      <link>https://dev.to/sparvero12/api-connections-on-the-back-end-333k</link>
      <guid>https://dev.to/sparvero12/api-connections-on-the-back-end-333k</guid>
      <description>&lt;p&gt;In this post I will be showing how to connect websites to APIs by using IP address longitude and latitude to render a google Maps iframe as well as a Wikipedia query tag.&lt;/p&gt;

&lt;h2&gt;
  
  
  GeoIP
&lt;/h2&gt;

&lt;p&gt;GeoIP is a free-to-use API that collects your geographic information as well as your IP address from your Internet Service Provider (ISP). This information is then used for your lat, long, city, and state. After retrieving the information from GeoIP, it is important to set the properties for data population. Lat and long should be returned as integers while city and state should be returned as strings.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--J_A1dyS3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/34oxj4vlbjba9onbfkrj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--J_A1dyS3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/34oxj4vlbjba9onbfkrj.png" alt="Image description" width="880" height="619"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Fetching Data
&lt;/h2&gt;

&lt;p&gt;Fetch API allows you to make HTTP requests to servers in web browsers. In this block fetch is used to retrieve location data from the IP address.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---lcnDhqY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7hw1mp4smfrincodo7dw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---lcnDhqY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7hw1mp4smfrincodo7dw.png" alt="Image description" width="880" height="724"&gt;&lt;/a&gt;&lt;br&gt;
This code uses the URL set by locationEndpoint to fetch your location based on your IP address. Then we set the proerties lat, long, city, and state as properties in the api for use rendering the location in google maps and making the Wikipedia query. &lt;/p&gt;

&lt;h2&gt;
  
  
  Render
&lt;/h2&gt;

&lt;p&gt;The render method is used here to return any values renderable b lit-HTML elements. This is where we generate the google  maps and wikipedia query. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---KppHLxc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ql8nbddqx9g12e1y4twe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---KppHLxc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ql8nbddqx9g12e1y4twe.png" alt="Image description" width="880" height="231"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In order for this method of creating a Wikipedia link work you nust first run npm install @lrnwebcomponents/wikipedia-query &lt;br&gt;
After that the package must be imported into the project as shown in this code block:&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kWfKCYWN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ma0ar8uryyfrz3jq2wr2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kWfKCYWN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ma0ar8uryyfrz3jq2wr2.png" alt="Image description" width="880" height="135"&gt;&lt;/a&gt;&lt;br&gt;
The  command is used to create a wikipedia query tag from the this.city and this.region properties.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Q_Yje5qJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nw2fv3rnvfawo2o3tab9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Q_Yje5qJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nw2fv3rnvfawo2o3tab9.png" alt="Image description" width="880" height="133"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Link to my repo
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/Sparvero12/api-project-1"&gt;https://github.com/Sparvero12/api-project-1&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  sources
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://freegeoip.app"&gt;https://freegeoip.app&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.npmjs.com/package/@lrnwebcomponents/wikipedia-query"&gt;https://www.npmjs.com/package/@lrnwebcomponents/wikipedia-query&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
