<?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 Collin Kueter on Medium]]></title>
        <description><![CDATA[Stories by Collin Kueter on Medium]]></description>
        <link>https://medium.com/@CollinKueter?source=rss-badc07a43c82------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XS2A89pazpyRBOdgrebryQ.jpeg</url>
            <title>Stories by Collin Kueter on Medium</title>
            <link>https://medium.com/@CollinKueter?source=rss-badc07a43c82------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 10:54:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@CollinKueter/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[Deploying to Multiple Firebase Projects Using Bitbucket Pipelines]]></title>
            <link>https://medium.com/@CollinKueter/deploying-to-multiple-firebase-projects-using-bitbucket-pipelines-51bd26eb44bd?source=rss-badc07a43c82------2</link>
            <guid isPermaLink="false">https://medium.com/p/51bd26eb44bd</guid>
            <category><![CDATA[deployment-pipelines]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[bitbucket]]></category>
            <dc:creator><![CDATA[Collin Kueter]]></dc:creator>
            <pubDate>Mon, 31 Dec 2018 16:00:26 GMT</pubDate>
            <atom:updated>2018-12-31T17:53:04.077Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*thIp0urhxWpEHF2ufPtuSQ.jpeg" /></figure><p>For most side projects, developers just run locally for testing and deploy to a hosting site for production. This has worked for me for quite a while but now I need a <em>dev.website.com</em> and a <em>website.com </em>so I will explain how I accomplished this using Firebase and Bitbucket Pipelines.</p><p>Because it is so easy to quickly get off the ground, I host most of my sites on Firebase. Firebase also allows you to point to multiple Firebase projects from one node project using what are called Firebase Aliases.</p><p>Let’s say I have two Firebase projects one called egg-scrambler-dev (used as a dev/testing environment) and the other egg-scrambler (used for production). I want to automatically deploy to the dev Firebase project (egg-scrambler-dev) when commits are pushed to the development branch in my repository and I want to automatically deploy to the production Firebase project (egg-scrambler) when pull requests are merged into master in my repository. To accomplish this I will first setup my Firebase aliases.</p><p>By default when I initialized a new Firebase project it created an alias called “default,” this alias points to the Firebase project I used in the initialization step (egg-scrambler).</p><p>To setup another firebase alias I simply type firebase use --add and a list of my Firebase projects will appear, I select the project I want for my dev environment and hit enter. At the prompt I give my project an alias name of “development.”</p><p>Next, I want to rename the alias “default” to “production”. I open the .firebaserc file in the root directory and change the key “default” to “production” under the “projects” key. Now my .firebaserc file that looks like the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/caf8a544af5572a8d462fa812327f296/href">https://medium.com/media/caf8a544af5572a8d462fa812327f296/href</a></iframe><p>Now that I have my Firebase projects configured correctly I need to create the scripts for my bitbucket pipeline to execute. In my package.json, I first create a script that changes the active Firebase project to the development project, &quot;development&quot;: &quot;firebase use development&quot;. Then create a script to change my active Firebase project to my production project, &quot;production&quot;: &quot;firebase use production&quot;. Finally I create a script to deploy to Firebase from a CI environment, firebase deploy --token $FIREBASE_TOKEN. (If you are unfamiliar with how to deploy to firebase from a CI environment checkout the <a href="https://github.com/firebase/firebase-tools#using-with-ci-systems">docs on firebase-tools</a>) My package.json script section looks like the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9e9d11515961ef11e006d903b8b7a718/href">https://medium.com/media/9e9d11515961ef11e006d903b8b7a718/href</a></iframe><p>Finally I can configure my bitbucket pipeline. It looks as follows:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cbc81eff1b1e72c7087888dae0f880bc/href">https://medium.com/media/cbc81eff1b1e72c7087888dae0f880bc/href</a></iframe><p>Let me know if you have any questions. I appreciate your feedback.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51bd26eb44bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automatic Versioning with Bitbucket Pipelines (NodeJS)]]></title>
            <link>https://medium.com/@CollinKueter/automatic-versioning-with-bitbucket-pipelines-nodejs-686e48aba59?source=rss-badc07a43c82------2</link>
            <guid isPermaLink="false">https://medium.com/p/686e48aba59</guid>
            <category><![CDATA[bitbucket]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[pipeline]]></category>
            <category><![CDATA[version]]></category>
            <dc:creator><![CDATA[Collin Kueter]]></dc:creator>
            <pubDate>Mon, 31 Dec 2018 12:01:00 GMT</pubDate>
            <atom:updated>2018-12-31T12:01:00.994Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xEmTjxzCj1w7YKqHdxSY_Q.jpeg" /></figure><h3>NodeJS Automatic Versioning with Bitbucket Pipelines</h3><p>After spending an afternoon searching for a good tutorial on how to add automatic semantic versioning to a NodeJS project using Bitbucket Pipelines I finally decided to write my own and share my configuration with others. (I’m sure someone could think of a better solution but this is concise and works for me. If you come across a better solution please feel free to leave a comment.)</p><p>Okay, enough words, let&#39;s see some code.</p><p>My pipeline configuration:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/31a6ccd5c4d6cd9192e418e8b8392750/href">https://medium.com/media/31a6ccd5c4d6cd9192e418e8b8392750/href</a></iframe><p>My step name is Increment Version as it simply increments the version using the semver patch number. The version npm command is defined in my package.json, which is as follows:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3d6f172bfcd5d6e8df84d4924bf5cc97/href">https://medium.com/media/3d6f172bfcd5d6e8df84d4924bf5cc97/href</a></iframe><p>I take advantage of the npm version command (<a href="https://docs.npmjs.com/cli/version">link to docs</a>), which allows you to bump the version of your application and write the bumped version back to the package.json file. The new version argument can be any valid semver string (patch, minor, major, prepatch, preminor, premajor, prerelease).</p><p>I’ve made the decision for my application that I will automatically increment the patch number for each new push to my repository. By default, if run in a git repo, the npm version command will also create a version commit and tag. The git push --tags command in the pipeline step then pushes the commit and tag to the repository.</p><p>If you found this helpful please give it a clap.</p><p>For reference, here is a noteworthy story which inspired my solution:</p><p><a href="https://medium.com/@athennian/automate-versioning-using-bitbucket-pipelines-nodejs-e2bdea850652">Automate Versioning Using Bitbucket Pipelines (NodeJS)</a></p><p>Also checkout my first story if you want to know why I write:</p><p><a href="https://medium.com/@CollinKueter/why-i-write-4644f4cded28">Why I Write</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=686e48aba59" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why I Write]]></title>
            <link>https://medium.com/@CollinKueter/why-i-write-4644f4cded28?source=rss-badc07a43c82------2</link>
            <guid isPermaLink="false">https://medium.com/p/4644f4cded28</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[first-post]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[writing]]></category>
            <dc:creator><![CDATA[Collin Kueter]]></dc:creator>
            <pubDate>Sun, 30 Dec 2018 20:46:08 GMT</pubDate>
            <atom:updated>2018-12-30T20:46:08.210Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TKylLdOBbpc9aPwpd7UWDA.jpeg" /></figure><p>I have always wanted to write a blog but never found my purpose for wanting to do such a thing, so long story short, it never happened. Well I’ve finally found a few reasons…</p><h4>Documenting Solutions to Challenges</h4><p>Often times coming back to a solution, even a few weeks later, I forget why I made the decisions I made. As common for software engineers, documentation is not my strong suit nor my favorite thing to do, so hopefully writing about it will help.</p><h4>Developing My Writing Skills</h4><p>I’ll be honest, writing is hard. I don’t mind writing but it doesn’t come natural for me — I want to change that.</p><h4>Helping Others</h4><p>Most likely if you’ve struggled with a problem someone else has as well, let’s share. Why keep all the knowledge to yourself?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4644f4cded28" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>