<?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: Fernando</title>
    <description>The latest articles on DEV Community by Fernando (@nand09).</description>
    <link>https://dev.to/nand09</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%2F712748%2F9911d3db-285c-470d-aa61-37d9ff30a4e7.jpeg</url>
      <title>DEV Community: Fernando</title>
      <link>https://dev.to/nand09</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nand09"/>
    <language>en</language>
    <item>
      <title>How to upgrade a Ruby on Rails app</title>
      <dc:creator>Fernando</dc:creator>
      <pubDate>Thu, 14 Mar 2024 16:05:09 +0000</pubDate>
      <link>https://dev.to/nand09/upgrade-rails-from-inside-docker-ci5</link>
      <guid>https://dev.to/nand09/upgrade-rails-from-inside-docker-ci5</guid>
      <description>&lt;p&gt;The idea for this post came because I couldn’t build a rails app on an M1 Mac computer for various reasons. for one, Ruby and Rails versions were old. However, I could run the app in docker so upgrading this app through docker facilitated the ability to do the upgrade. This blog post assumes you already have your application running in Docker and that you are using docker-compose. &lt;/p&gt;

&lt;h2&gt;
  
  
  Let's upgrade rails
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;The first step is of course to make sure that the app works in docker. The newer version of Rails come with a docker file that will run your app locally but older versions don’t have this feature.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Get on the docker container by running, &lt;strong&gt;&lt;code&gt;docker-compose exec container_name bash&lt;/code&gt;&lt;/strong&gt;&lt;br&gt;
make sure to capture the rails version you are on.&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;  &lt;span class="nx"&gt;rails&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;v&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The next step is to head on to &lt;a href="https://railsdiff.org/"&gt;https://railsdiff.org/&lt;/a&gt; to see what changes have been made from the rails version you are on to the want you want to move to. &lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;The common practice when upgrading rails is to go to the latest version in the current sequence. for example, say you have an app that is running Rails 6.1.4, then you want to update your Rails to the latest version of Rails 6.1.4. in this example, you want to update rails to 6.1.4.7. 
if we look at &lt;a href="http://railsdiff.org"&gt;railsdiff.org&lt;/a&gt; for the differences in these two versions. in our example, there is not much that we need to change. so let's continue updating rails.
&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%2Fed7u4j14m8u2deab8c29.png" alt="Image description" width="800" height="375"&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;4.The next thing to do back in our application is to run &lt;code&gt;bundle update rails&lt;/code&gt; from inside the docker container. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This will update the needed gems to the compatible versions of our newly updated rails version. You will see something like the below. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&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%2F1ohjgsjzm0s017xsmttc.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%2F1ohjgsjzm0s017xsmttc.png" alt="Image description" width="800" height="1000"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;5.Lastly, make sure to run the update task. the update task will walk you through changes in the rails configuration files and ask you to review the differences.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  rails app:update
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;this will 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%2Fsoz502znhblcb6oxbo7c.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%2Fsoz502znhblcb6oxbo7c.png" alt="Image description" width="800" height="265"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;6.Our final step is to make sure we run our tests.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;```
rails test
```
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Great! you have updated your Rails application. Continue doing the same steps for the next rails version and use &lt;a href="http://railsdiff.org"&gt;railsdiff.org&lt;/a&gt; as a helping tool.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;IMPORTANT&lt;/strong&gt; At this point you should make sure to run your tests to make sure that everything is working as expected. of course, this implies that you have good test coverage for your entire application. if you have integration tests, make sure those also pass and make changes as needed if they dont. As an extra safety measure, I like to click around and submit forms, etc within my application to make sure the behavior is the same as before.  &lt;/p&gt;

&lt;p&gt;As a final thought, make sure to read the Rails guides for best practices when upgrading a Rails application. you can see that here:&lt;br&gt;
&lt;a href="https://guides.rubyonrails.org/upgrading_ruby_on_rails.html"&gt;https://guides.rubyonrails.org/upgrading_ruby_on_rails.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thank you for reading. feel free to leave your comments below.&lt;/p&gt;

</description>
      <category>rails</category>
      <category>docker</category>
      <category>ruby</category>
      <category>programming</category>
    </item>
    <item>
      <title>Deploy App with Google Firebase</title>
      <dc:creator>Fernando</dc:creator>
      <pubDate>Sat, 08 Oct 2022 19:19:23 +0000</pubDate>
      <link>https://dev.to/nand09/single-page-app-with-googles-firebase-4p6a</link>
      <guid>https://dev.to/nand09/single-page-app-with-googles-firebase-4p6a</guid>
      <description>&lt;h1&gt;
  
  
  Single page app with Google's Firebase
&lt;/h1&gt;

&lt;p&gt;Nowadays deploying a website out on the web is a trivial process. All you need is a computer to write your code in, an internet connection, a hosting provider, a DNS record, use versioning system to host your app files, and money…. Eh, that list is getting long.&lt;/p&gt;

&lt;p&gt;Let's start over, shall we?&lt;/p&gt;

&lt;p&gt;Nowadays deploying a website out on the web is a trivial process. Google's Firebase cloud system makes the deployment easy. In this tutorial, we will deploy a single-page website on the web in just a few steps. &lt;/p&gt;

&lt;p&gt;Prerequisites&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Command line experience. You should be able to create directories and files and run a few commands.&lt;/li&gt;
&lt;li&gt;Able to run commands on the command line. Administrator privileges on your machine.&lt;/li&gt;
&lt;li&gt;A computer with internet access.&lt;/li&gt;
&lt;li&gt;5-10 minutes.&lt;/li&gt;
&lt;li&gt;Gmail account.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 1&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Log in to the Googles Firebase developer console here: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://console.firebase.google.com/"&gt;https://console.firebase.google.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Once you have logged in and are on the main page, click on “&lt;strong&gt;Create a Project”&lt;/strong&gt;. Choose a name for your project. I chose firebase-tutorial.&lt;/p&gt;

&lt;p&gt;Feel free to enable/disable analytics for your project in step 2 of the wizard. &lt;/p&gt;

&lt;p&gt;Select the default account if you chose to enable analytics*.&lt;/p&gt;

&lt;p&gt;Then click “&lt;strong&gt;create project&lt;/strong&gt;”&lt;/p&gt;

&lt;p&gt;If you chose to disable analytics, go ahead and click the “create project” button. &lt;/p&gt;

&lt;p&gt;*Make sure to accept google analytics terms if you enabled analytics. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Once you have created your project, you should now be on the project's homepage.&lt;/p&gt;

&lt;p&gt;Let's go ahead and create an app by clicking the web &lt;strong&gt;( &amp;lt;/&amp;gt; )&lt;/strong&gt; icon. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Choose a nickname for your app, I chose “&lt;strong&gt;firebase-tutorial&lt;/strong&gt;”. then click “&lt;strong&gt;Register app&lt;/strong&gt;”. &lt;/p&gt;

&lt;p&gt;&lt;em&gt;if you select the Firebase hosting checkbox, you can either accept Google’s site name or you can create a site name. if you create a new site name. your website will be available at **your-site-name.web.app&lt;/em&gt;*&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Download the Firebase tools&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-sL&lt;/span&gt; https://https://firebase.tools | bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 6&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Once Firebase tools are installed, type the following&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;firebase login
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Make sure you use the same account to log in as the one you used for creating a project earlier. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 7&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In your command line, let's navigate to our desktop (or where you keep your project files) and create a directory there. Type the following:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~/Desktop
&lt;span class="nb"&gt;mkdir &lt;/span&gt;firebase-tutorial
&lt;span class="nb"&gt;cd &lt;/span&gt;firebase-tutorial
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 8&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Initiate your project&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;in the prompts that follow, &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;we already have a project so select, &lt;strong&gt;use an existing project&lt;/strong&gt;. hit enter. &lt;/li&gt;
&lt;li&gt;hit enter again for selecting the default project&lt;/li&gt;
&lt;li&gt;what do you want to use as your public directory? (public). 

&lt;ol&gt;
&lt;li&gt;hit enter again. we will use the default directory.&lt;/li&gt;
&lt;/ol&gt;


&lt;/li&gt;
&lt;li&gt;configure as a single-page app ?

&lt;ol&gt;
&lt;li&gt;enter ‘&lt;strong&gt;y&lt;/strong&gt;’&lt;/li&gt;
&lt;/ol&gt;


&lt;/li&gt;
&lt;li&gt;we will not be setting up automatic deployment with GitHub, enter ‘&lt;strong&gt;N&lt;/strong&gt;’&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Step 9&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Deploy your app&lt;/p&gt;

&lt;p&gt;great!! we are almost there. You now have a single-page web application. &lt;/p&gt;

&lt;p&gt;let's see it live on the internet by doing the following:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;firebase deploy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Visit your site on the web by selecting the &lt;strong&gt;Hosting URL&lt;/strong&gt; value in the printed output of your terminal. &lt;/p&gt;

&lt;p&gt;when you visit your site, you should see something like this:&lt;/p&gt;

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

&lt;p&gt;Congratulations, you now have a single-page web app live on the internet.&lt;/p&gt;

&lt;h1&gt;
  
  
  Bonus Points
&lt;/h1&gt;

&lt;p&gt;The default page is boring. Let’s spice it up some and let's have our friends visit our site. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Rename your &lt;strong&gt;index.html&lt;/strong&gt; file to &lt;strong&gt;index1.hml&lt;/strong&gt; and create a new &lt;strong&gt;index.html&lt;/strong&gt; file inside your public directory. copy the content below and put it in the new &lt;strong&gt;index.html&lt;/strong&gt; file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&lt;/span&gt; &lt;span class="na"&gt;lang=&lt;/span&gt;&lt;span class="s"&gt;"en"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;charset=&lt;/span&gt;&lt;span class="s"&gt;"UTF-8"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;http-equiv=&lt;/span&gt;&lt;span class="s"&gt;"X-UA-Compatible"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"IE=edge"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"viewport"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"width=device-width, initial-scale=1.0"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;script &lt;/span&gt;&lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Jokes Website&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;

    &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;Welcome Friends,&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;Want to hear a joke? click the button below. ;)&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;onclick=&lt;/span&gt;&lt;span class="s"&gt;"fetchAJoke()"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Tell me a joke&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"joke-paragraph"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/p&amp;gt;&lt;/span&gt;

    &lt;span class="nt"&gt;&amp;lt;script &lt;/span&gt;&lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text/javascript"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;fetchAJoke&lt;/span&gt;&lt;span class="p"&gt;(){&lt;/span&gt;
            &lt;span class="nx"&gt;$&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;document&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;ready&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(){&lt;/span&gt;
                &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;jokes_api_url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;https://v2.jokeapi.dev/joke/Programming,Miscellaneous,Dark,Spooky,Christmas?blacklistFlags=nsfw,racist&amp;amp;type=single&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;
                &lt;span class="nx"&gt;$&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kd"&gt;get&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
                    &lt;span class="na"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;jokes_api_url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                    &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;GET&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                    &lt;span class="na"&gt;success&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;result&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
                        &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;jokeParagraph&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;$&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;#joke-paragraph&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
                        &lt;span class="nx"&gt;jokeParagraph&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;joke&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;


                    &lt;span class="p"&gt;},&lt;/span&gt;
                    &lt;span class="na"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;error&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
                        &lt;span class="nx"&gt;alert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;error, try again later&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;error&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="p"&gt;})&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 2&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Let's deploy our website.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;firebase deploy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;if you followed the steps above, you should have something like the following image.&lt;/p&gt;

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

&lt;p&gt;see my live site here:&lt;br&gt;
&lt;a href="https://fir-tutorial-d6310.web.app/"&gt;https://fir-tutorial-d6310.web.app/&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;If you are looking to deploy a small site, Googles Firebase is a good tool. It is convenient and you don't have to worry about the other things that come with trying to host a site online. This is also good for showcasing your projects. &lt;/p&gt;

&lt;p&gt;Post in the comments your site URL. I look forward to seeing any remixes you guys make. &lt;/p&gt;

</description>
      <category>firstpost</category>
      <category>tutorial</category>
      <category>firebase</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
