<?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 Kyle Crews on Medium]]></title>
        <description><![CDATA[Stories by Kyle Crews on Medium]]></description>
        <link>https://medium.com/@kyledcrews?source=rss-733a042ed8b3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*zX6R884SNqvdLihRSKKZ7Q.jpeg</url>
            <title>Stories by Kyle Crews on Medium</title>
            <link>https://medium.com/@kyledcrews?source=rss-733a042ed8b3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 07:37:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kyledcrews/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[Turbocharging the Box CLI with GNU Parallel]]></title>
            <link>https://medium.com/box-developer-blog/turbocharging-the-box-cli-with-gnu-parallel-ee44c48811c0?source=rss-733a042ed8b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee44c48811c0</guid>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[gnu-linux]]></category>
            <category><![CDATA[box]]></category>
            <category><![CDATA[box-cli]]></category>
            <dc:creator><![CDATA[Kyle Crews]]></dc:creator>
            <pubDate>Wed, 24 Jul 2024 14:54:35 GMT</pubDate>
            <atom:updated>2024-07-24T14:54:35.766Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C2ny8AB-aTp9V3gDjIAxAg.png" /></figure><p>Welcome, tech enthusiasts! If you’re looking to boost the efficiency of your workflow by running multiple <a href="https://developer.box.com/guides/cli/">Box CLI</a> commands simultaneously, you’re in the right place. Today, we’re diving into how to use <a href="https://www.gnu.org/software/parallel/">GNU Parallel</a> — a remarkable tool for executing jobs in parallel — to supercharge your Box CLI operations. Say goodbye to sequential boredom and hello to lightning-fast task execution!</p><h4>What is GNU Parallel?</h4><p>GNU Parallel is a shell tool for executing jobs in parallel. It’s like having a turbo button for your command line tasks, speeding up processing by running multiple jobs simultaneously. It’s not just fast; it’s also flexible, allowing you to control how many jobs run in parallel and handle complex job dependencies.</p><h4>Setting Up GNU Parallel</h4><p>First things first, let’s set up GNU Parallel on your system. Here’s how to do it across various operating systems:</p><h4>On Ubuntu/Debian:</h4><pre>sudo apt-get update<br>sudo apt-get install parallel</pre><h4>On macOS:</h4><pre>brew install parallel</pre><h4>On CentOS/Fedora:</h4><pre>sudo yum install parallel</pre><h4>On Windows:</h4><p>For Windows users, you can use GNU Parallel through a Unix-like environment provided by <a href="https://www.cygwin.com/">Cygwin</a>. Here’s a quick guide:</p><ul><li>Download and install Cygwin from <a href="https://www.cygwin.com/">here</a>.</li><li>During the installation, make sure to select the <strong>parallel</strong> package under the ‘Devel’ category.</li></ul><p>Once installed, verify the installation by running:</p><pre>parallel --version</pre><p>You should see the version number of GNU Parallel displayed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lss45mghtJQOOGiNMFNgEg.png" /></figure><h3>Integrating GNU Parallel with Box CLI</h3><p>Assuming you have the Box CLI installed (if not, visit the <a href="https://developer.box.com/guides/cli/quick-start/">Box CLI Quick Start Guide</a> for installation instructions), you’re almost ready to harness the power of parallel processing.</p><h3>Preparing Your Input File</h3><p>GNU Parallel works wonders with input files. Suppose you need to upload multiple files to your Box account. Instead of manually entering commands for each file, you can list all the file paths in a text file.</p><p>Create a file named <strong>files-to-upload.txt</strong> and list each file path you want to upload, one per line:</p><pre>/path/to/file1.pdf<br>/path/to/file2.jpg<br>/path/to/file3.docx</pre><h3>Writing the Parallel Command</h3><p>Now, let’s craft a command that uses GNU Parallel to read each line from your input file and execute the Box CLI upload command concurrently:</p><pre>parallel -j 10 box files:upload {} --parent-id 123456789 --name {/}  :::: files-to-upload.txt</pre><p>Here’s a quick breakdown of this command:</p><ul><li><strong>parallel</strong>: Invokes GNU Parallel.</li><li><strong>-j 10</strong>: Runs 10 jobs in parallel. Adjust this number based on your CPU capabilities and network bandwidth… or, omit and GNU Parallel will automatically determine how many jobs can run in parallel</li><li><strong>box files:upload {} — parent-id 123456789 — name {/}</strong>: The Box CLI command to upload files. <strong><em>{}</em></strong> is replaced by the input line from the file (file path), <em>parent-id</em><strong><em> </em></strong>is the folder in Box where the files should be uploaded, and <strong><em>{/}</em></strong> extracts the basename of the file to use as the uploaded file name.</li><li><strong>:::: files-to-upload.txt:</strong> Specifies the input file for GNU Parallel. Be sure to run the command from the directory where this file is located.</li></ul><p>Instead of a simple text file, you can also use a CSV file for better data management. Suppose you need to <strong>delete multiple items</strong> from a user’s trash in Box. Here’s how you’d prepare the input file:</p><ul><li>Create a CSV file named <strong>input.csv</strong> with the following columns: <strong>item_type</strong>, <strong>item_id</strong>, and <strong>user_id</strong>. Exclude the header in your parallel command execution or skip it using <a href="https://www.ibm.com/docs/pt-br/aix/7.1?topic=awk-command"><strong>awk</strong></a>:</li></ul><pre>item_type,item_id,user_id<br>file,100000000,0000001<br>folder,100000001,0000002<br>file,100000002,0000001</pre><ul><li>Use <strong>awk</strong> to process this CSV and pass it to GNU Parallel:</li></ul><pre>awk -F, &#39;NR &gt; 1 {print $1 &quot;,&quot; $2 &quot;,&quot; $3}&#39; input.csv | parallel -j12 --colsep &#39;,&#39; box trash:delete {1} {2} --as-user {3}</pre><p>Here’s a breakdown of this command:</p><ul><li><strong>awk -F, ‘NR &gt; 1 {print $1 “,” $2 “,” $3}’ input.csv</strong>: Parses the CSV, skipping the header, and prints each line.</li><li><strong>parallel -j12 — colsep ‘,’ ‘box trash:delete {1} {2} — as-user {3}’</strong>: Runs 12 jobs in parallel. {1}, {2}, and {3} are placeholders for the columns from the CSV, corresponding to item_type, item_id, and user_id respectively.</li></ul><h3>Executing the Command</h3><p>Run the command in your terminal, and watch as GNU Parallel efficiently processes multiple uploads at once. It’s like conducting an orchestra where every musician plays perfectly in sync, except here, each musician is a file upload making its way to the cloud! ☁️</p><h3>Conclusion</h3><p>By leveraging GNU Parallel with the Box CLI, you’ve not only saved time but also introduced a level of efficiency that can transform your productivity. Whether you’re handling massive datasets, performing routine backups, handling bulk file operations, or managing a multitude of files, GNU Parallel + Box CLI ensures your tasks are completed swiftly and efficiently.</p><p>Embrace the power of parallel processing with GNU Parallel + Box CLI, and watch your productivity soar!</p><p><em>Join our </em><a href="https://forum.box.com/"><em>Box Community</em></a><em> for any questions related to Box CLI and knowledge sharing! </em>🦄</p><p><em>See you there!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee44c48811c0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/box-developer-blog/turbocharging-the-box-cli-with-gnu-parallel-ee44c48811c0">Turbocharging the Box CLI with GNU Parallel</a> was originally published in <a href="https://medium.com/box-developer-blog">Box Developer Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Juice the Returns on Stock Grants (RSUs)]]></title>
            <link>https://kyledcrews.medium.com/juice-the-returns-on-stock-grants-rsus-5a8ca6e5b12b?source=rss-733a042ed8b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a8ca6e5b12b</guid>
            <category><![CDATA[stock-market]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[stock-options]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Kyle Crews]]></dc:creator>
            <pubDate>Wed, 29 Mar 2023 19:47:06 GMT</pubDate>
            <atom:updated>2023-03-29T21:04:57.279Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JKkwKm87ErYJBTxk" /><figcaption>Photo by <a href="https://unsplash.com/@javiestebaan?utm_source=medium&amp;utm_medium=referral">Javier Esteban</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Covered calls are a popular strategy among investors who want to generate additional income from their stock holdings. By combining this strategy with restricted stock units (RSUs), investors can potentially increase their investment returns even further.</p><p>RSUs are a form of compensation given to employees in the form of company stock. They are usually subject to a vesting period, meaning the employee must work for a certain period of time before the RSUs become fully vested and can be sold or transferred. Once the RSUs are vested, they can be a valuable asset for employees looking to build their investment portfolio.</p><p>To generate additional income from their RSUs, investors can use a covered call strategy. This involves selling call options on the RSUs they own. A call option is a contract that gives the buyer the right, but not the obligation, to buy the underlying asset (in this case, the RSUs) at a predetermined price (the strike price) at a certain point in time (the expiration date).</p><p>When an investor sells a call option, they receive a premium (the price of the option) from the buyer. This premium is the investor’s additional income, and it can be a percentage of the RSU’s value. However, if the stock price rises above the strike price, the buyer of the call option will likely exercise their option and buy the RSUs at the lower strike price. In this case, the investor would be required to sell their RSUs at the lower strike price, potentially missing out on additional gains.</p><p>To mitigate this risk, the investor can use a covered call strategy. This involves simultaneously owning the underlying asset (the RSUs) and selling call options on those RSUs. If the stock price rises above the strike price, the investor still profits from the sale of the call option premium, but they also keep their RSUs and can potentially benefit from further price appreciation.</p><p>Of course, as with any investment strategy, there are risks involved. If the stock price falls significantly, the value of the RSUs will also fall, potentially leading to losses for the investor. Additionally, if the stock price rises above the strike price, the investor may miss out on additional gains if they are required to sell their RSUs at the lower strike price.</p><p>In conclusion, using a covered call strategy with restricted stock units can potentially increase investment returns by generating additional income from call option premiums. However, it is important for investors to carefully consider the risks involved and to consult with a financial advisor before implementing this strategy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a8ca6e5b12b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reveal p@$$words in Chrome]]></title>
            <link>https://kyledcrews.medium.com/reveal-p-words-in-chrome-593052924e15?source=rss-733a042ed8b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/593052924e15</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[chrome]]></category>
            <dc:creator><![CDATA[Kyle Crews]]></dc:creator>
            <pubDate>Tue, 11 May 2021 06:43:55 GMT</pubDate>
            <atom:updated>2021-05-20T18:17:54.034Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LmoNi5bjQ9avtgfOswedPw.jpeg" /></figure><h4>We all have this, somewhat naive, trust of security on the web. But, how secure are the passwords stored in your browser… really?</h4><p>Chrome (and other modern browsers) make it easy to store login credentials. This is a handy feature and allows you easy access to a login-protected site without the need to enter a username/password each visit — unified black dots in place of text for password fields. A simple enough concept, eh?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eR5NiqHQWMWGyX28JcZuqQ.png" /></figure><p>Yet, within browsers, it’s surprisingly simple to uncover the password for saved credentials. Candidly, the obfuscation of plain text will protect your password 99.9% of the time. Most people do not have the knowledge, interest, or desire to steal your login with these measures in place. And, to be fair… unlocked access to your computer is also needed. But it’s still something to be aware of.</p><p>Do you want to know the password used on a site but don’t feel like hacking the mainframe or requesting another password reset? Let’s review the process.</p><blockquote><strong><em>Access the site containing the saved login credentials.</em></strong></blockquote><blockquote><em>For this example, I’ll use the login page for the encrypted email service Proton Mail, but this process will work on any site where the credentials are saved in your browser</em>.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q3E6lMLiaRwgRyUsT2yfOg.png" /></figure><blockquote><strong><em>Right-click in the password field to display a menu + select </em></strong>Inspect.</blockquote><blockquote><em>This will open the Developer console in Chrome</em>.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*krFMoq2quew3-ZUni83CqQ.png" /></figure><blockquote><strong><em>Locate the &lt;input&gt; tag for the password field, in the </em></strong>Elements<strong><em> tab</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U4x4QiNOnKmkMw3Z2hs0Cw.png" /></figure><blockquote><strong><em>Within the &lt;input&gt; tag, update the type= from “</em></strong>password<strong><em>” to “</em></strong>text”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*nsxaI4m4broWlbVj4LogKw.png" /></figure><blockquote><strong>voilà… the password field converts to plain text.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*mMDB4l0noOxak4R-vdw2TQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=593052924e15" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[windDOWN with Sinatra]]></title>
            <link>https://kyledcrews.medium.com/winddown-with-sinatra-ad27212aba09?source=rss-733a042ed8b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad27212aba09</guid>
            <category><![CDATA[self-awareness]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Kyle Crews]]></dc:creator>
            <pubDate>Fri, 12 Jun 2020 05:05:13 GMT</pubDate>
            <atom:updated>2020-06-12T05:05:13.619Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*amwcmpsc0nbx_p2637-U1A.jpeg" /></figure><p><strong>download the app</strong> // <a href="https://github.com/kyle-crews/wind-down">https://github.com/kyle-crews/wind-down</a></p><p>_________________</p><p><strong>WINDdown</strong> is a simple web application built on a combination of Ruby, Sinatra, HTML/CSS, JS, and ActiveRecord. The build only took a few days, but I certainly ran into my share of issues along the way. Below I review the functionality associated with the app … and discuss some of the headaches I encountered during the build.</p><p>Software development in 2020 is that of rapid iterations, frequent updates, and a stream of feature requests. For apps and SaaS products to stay relevant, they must nail: <strong><em>quick updates</em></strong>, offer <strong><em>quality/stable builds</em></strong>, and do <strong><em>seamless deployments, regularly.</em></strong></p><p>To enable rapid builds/deployments, <strong>modern software development requires working with borrowed-code of all sorts</strong>. From open source contributions, to APIs calls, to code snippets … code, you did not personally write, is frequently called on and utilized. The need to write custom code for each feature/function drops dramatically … and with it, the development time of projects. Versus starting from scratch, what’s primarily required of a modern developer is the <strong>ability to stitch together code segments, ensuring compatibility.</strong></p><p>Until now, I have built each project from scratch. Starting with an empty notebook and building out each document individually. I wanted to do something different this go around. So, for a recent build, I decided to take an existing project as the starting point. Updating, refactoring, and adjusting the codebase to reflect the desired functionality I wanted.</p><p>The application should have a few simple elements:</p><ol><li>A field to input your <strong>most crucial task tomorrow</strong></li><li>An area to input what you <strong>accomplished that day</strong></li><li>A space to input <strong>what good happened today</strong></li><li>An area to input what you are <strong>grateful for</strong></li></ol><p>Primarily, a way to decompress before bed using targeted, self-aware, journaling. <strong>WINDdown</strong> is the result. A place to deliberately remember <strong>what you accomplished today</strong>, what is your <strong>primary</strong> <strong>focus tomorrow</strong>, and <strong>what went right today</strong>. Yes, there are plenty of applications, both mobile and web-based, that offer similar functionality. But, ultimately, nothing provided what I was looking for, as far as functionality. Said functionality includes:</p><ol><li>Ability to <strong>secure sensitive personal data by storing it locally.</strong> No data is sent to or stored in the cloud … unless set up manually. By default, store all information on your local machine. Back up your data on an external SSD, and you are the only one who will see it.</li><li>New entries are <strong>not a blank page</strong></li><li>A new entry <strong>takes only a few minutes to complete</strong></li><li>The process is <strong>frictionless and easy to navigate</strong></li></ol><h3>LESSON FROM THE BUILD:</h3><p>_________________________________</p><h4>common mistakes when using search/replace</h4><blockquote>“Oh, this is so simple. I will simply replace all the instances of a word” is a dangerous statement.</blockquote><p><strong><em>// capitalizations //</em></strong></p><p>Here’s where I ran into the <a href="https://www.urbandictionary.com/define.php?term=fuck">first problem</a>. In my case, I wanted to <strong>change each instance of</strong> <strong><em>category</em></strong> <em>to</em> <strong><em>day</em></strong>. The <em>Find &amp; Replace</em> functionality within VSCode makes this exceedingly easy to accomplish. What I failed to account for … the default settings do not account for the capitalization of a word. Replace <strong><em>c</em></strong><em>ategory</em><strong> </strong>for<strong> <em>d</em></strong><em>ay</em><strong>, without issue … </strong>replace<strong> <em>C</em></strong><em>ategory</em> with<strong> <em>d</em></strong><em>ay, </em><strong><em>big issue.</em></strong></p><p>In most programming languages, the capitalization of words matter. The app I built, WINDdown, utilizes Ruby … So I will use Ruby in this reference:</p><blockquote>variables <strong>not capitalized</strong></blockquote><blockquote>capital = “liquid assets”</blockquote><blockquote>classes <strong>capitalized</strong></blockquote><blockquote>class Capital</blockquote><blockquote>end</blockquote><p>When the class #<strong>Category</strong> is replaced by #<strong>day</strong>, the class and all references to the class no longer work. The class #<strong>Category</strong> must be replaced by the class #<strong>Day</strong>. To resolve this issue, I selected the “match case” filter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*VpPEkXzFP53HBFnlvd1y9g.png" /><figcaption>find &amp; replace within VS Code</figcaption></figure><p><strong><em>LESSON 1</em></strong><em>:</em> Always <strong>VERIFY THE CASE</strong> before replacing a word</p><p><em>// </em><strong><em>words within words //</em></strong></p><p>Replace all instances of <strong><em>asset</em></strong> with <strong><em>liability</em></strong>. It seems easy enough … but what about for terms such as <strong><em>Cassette. </em></strong>This word is updated, as well. C<strong><em>asset</em></strong>te becomes C<strong><em>liability</em></strong>te. I’ll take “Most likely to cause an error for $400, please”.</p><p>When #Cassette is replaced by #Cliabilityte, the class, and all references no longer work. The term “liability” must only replace independent instances of the word “asset” … nothing else. To resolve this issue, I selected the “match whole word” filter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*VGTJvbYaKQ9s5qyxX4nStA.png" /><figcaption>find &amp; replace within VS Code</figcaption></figure><p><strong><em>LESSON 2</em></strong><em>:</em> Before replacing, always <strong>VERIFY THE WORD</strong></p><p><strong><em>// unintentionally replacing similar words //</em></strong></p><p>Another issue I ran into was updating code, unnecessarily. <strong><em>name</em></strong> is a variable associated with the previous project. What I wanted to do? … update instances of the variable <strong><em>name</em></strong> to <strong><em>date.</em></strong> Again, simple enough to do. What I did not consider is … some instances of <strong><em>name </em></strong>are part of the HTML syntax, that need to remain unchanged. For example:</p><p>&lt;input type=”text” <strong><em>name</em></strong>=”username” placeholder=”Username…” class=”form-username form-control” id=”form-username”&gt;</p><p>There’s <strong>no easy filter or way I found around this issue</strong>. Across many languages, syntax and relevance should be observed for projects with a sizable codebase before making each update.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*7IFrePOt5djWFiztJpA3aA.png" /><figcaption>VS Code: select to update an individual instance</figcaption></figure><p><strong><em>LESSON 3</em></strong><em>:</em> Always <strong>INDIVIDUALLY REVIEW </strong>THE WORD/SYNTAX + <strong>VERIFY FUNCTIONALITY</strong> after changes</p><p>Hopefully, you’re able to learn from some of the struggles I encountered during this project. If you have thoughts on the project or suggestions for improvements … reach out.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad27212aba09" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Access Granted: The YouTube API]]></title>
            <link>https://kyledcrews.medium.com/access-granted-the-youtube-api-d13532f00bc5?source=rss-733a042ed8b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/d13532f00bc5</guid>
            <category><![CDATA[youtube]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[api-development]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Kyle Crews]]></dc:creator>
            <pubDate>Mon, 20 Apr 2020 08:23:33 GMT</pubDate>
            <atom:updated>2020-04-20T08:23:33.124Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EbZWJb84BYtkH6eSAbQMDw.png" /><figcaption>images source: <a href="https://developers.google.com/youtube">developer.google.com</a></figcaption></figure><p>Recently, a family member reached out for help with an API. A school assignment asked her to utilize the YouTube API to complete a defined task. <strong>API’s are incredible … providing easy access to powerful tools, services, and datasets.</strong> But, as with all coding, there’s a learning curve. Ensuring you have the appropriate keys, properly enabling the API, interpreting the errors, and parsing the results can present challenges for even experienced programmers.</p><p><a href="https://developers.google.com/youtube/v3"><strong>Google’s documentation and available tutorials</strong></a> are pretty incredible. 👏 Here, you’ll find anything you could ever need. Google’s done a great job of keeping the instructions simple and organized. Yet, the amount of information presented can be overwhelming for people new to programming. While diving into the documentation, I created a condensed guide to reference.</p><blockquote><strong>Step 1: </strong><a href="https://console.developers.google.com/apis"><strong>Enable YouTube Data API v3</strong></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OO-s66kb7HzMWSrW.png" /></figure><blockquote><strong>Step 2: Ensure YouTube API is enabled</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EEjcDO7eq7lx38jn.png" /></figure><blockquote><strong>Step 3: </strong><a href="https://console.developers.google.com/apis/api/youtube.googleapis.com/credentials"><strong>Locate or create an API key</strong></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kHPZoqxGEWXyIY7M5bByAQ.png" /></figure><p>Step 4: Make a GET request to the YouTube servers</p><p><strong>Once you have your API key … you’re ready to make the request.</strong> I use a program called <a href="https://insomnia.rest/">Insomnia</a> to handle and test API requests, so you’ll see that in the screenshot below. Utilizing Insomnia is certainly not required, but very helpful!</p><p>Basically, <strong>you’re entering a URL and sending it to YouTube’s server.</strong> Based on the URL you provide, YouTube’s server will provide a response with information. So, for example … let’s say I want to search for videos related to <strong><em>surfing</em></strong>. This is the base API request you’d need to make.</p><blockquote>GET {base_URL}/search?part=snippet<strong>&amp;q=surfing</strong>&amp;key={YOUR_API_KEY}</blockquote><p><strong>EXAMPLE:<em> </em></strong><em>(BE SURE TO REPLACE THE KEY I USED WITH YOURS!)</em></p><blockquote>GET <a href="https://www.googleapis.com/youtube/v3/search?part=snippet&amp;q=surfing&amp;key=AIzaXXXXXXXXXXXXXXXXXXXXXXXXX">https://www.googleapis.com/youtube/v3/search?part=snippet&amp;<strong>q=surfing</strong>&amp;key=<strong>AIzaXXXXXXXXXXXXXXXXXXXXXXXXX</strong></a></blockquote><p>YouTube’s API will provide a JSON file with the results of your request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3d_5IpmK2LCqT_PlRdlYWQ.png" /><figcaption>download Insomnia desktop client at <a href="https://insomnia.rest/">https://insomnia.rest/</a></figcaption></figure><h4>Let’s break that down</h4><p>###################</p><p><strong>GET:</strong> Lets YouTube’s server know you’re making a request to return data</p><p><strong>BASE_URL:</strong> This is the URL used to make the API request … in the instance we’re using <a href="https://www.googleapis.com/youtube/v3">https://www.googleapis.com/youtube/v3</a></p><p><strong>/SEARCH?: </strong>Lets<strong> </strong>YouTube’s servers know we want to do a search of their database</p><p><strong>&amp;q=surfing: </strong>The term we are searching for … this can be any word or combination of words</p><p><strong>&amp;key=: </strong>Your API key to authenticate the request. Without the API key, YouTube’s server will not respond with any data</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d13532f00bc5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LocalHost server from VSCode]]></title>
            <link>https://kyledcrews.medium.com/localhost-server-from-vscode-d72acdc72336?source=rss-733a042ed8b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/d72acdc72336</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Kyle Crews]]></dc:creator>
            <pubDate>Sat, 01 Feb 2020 04:10:22 GMT</pubDate>
            <atom:updated>2020-02-01T04:10:22.823Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oXDBINltzeI6_pWNYllCVQ.png" /></figure><p>A recent foray into the captivating and colorful world of HTML/CSS had me longing for a better tool. Not a tool … a better process, maybe? Here’s the issue I ran into: Viewing adjustments to the CSS/HTML files, in VSCode, required me to drag the update index.html to Chrome.</p><p><strong><em>This involved:</em></strong></p><ol><li><strong>Saving the updates in MS Code</strong></li><li><strong>Switching to Finder</strong></li><li><strong>Locating the file</strong></li><li><strong>Ensuring Chrome was open</strong></li><li><strong>Dragging the index.html file to Chrome</strong></li><li><strong>Verify desired results</strong></li></ol><p><strong>Six steps. Six clicks. Six points of friction.</strong> Friction between what I wanted to accomplish and the process to do it. This added time and frustration to the process of working with HTML/CSS files. While I’m aware “What You See Is What You Get” (WYSIWYG) editors exist, I have VSCode configured nicely and rarely want to leave the comfort of the setup I’ve created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DImg8Jn9oMWoMzRxQbK7mw.png" /><figcaption><strong>| </strong><a href="https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer"><strong>download link</strong></a><strong> |</strong></figcaption></figure><p>Enter <strong><em>Live Server</em></strong>. A local server renders updates from HTML/CSS files to a Chrome tab. In real time, you are able to see any adjustments made to your files in VSCode. Best part … it all happens with a single click.</p><h4>TRY FOR YOURSELF:</h4><p>I find the functionality of this extension to be very help. For those of you interested, the steps to start a server are below.</p><p>Install the Live Server extension <strong>| </strong><a href="https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer"><strong>download link</strong></a><strong> |</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RAqiPr1Hp8kRlNu0EtFMYw.png" /></figure><p>Click “Go Live”. The button is located in the bottom right corner, by default.</p><p><strong><em>Please Note*</em></strong> Go Live only appears when HTML/CSS files are present in the file structure</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*obPO3iGtJriJnNAaRwuVdw.png" /></figure><p>A port is automatically selected and a locally hosted server starts. Chrome launches and a new tab is opened.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*4zxV_hdlmvJ6fIKvUgmomg.png" /></figure><p>Chrome renders the HTML/CSS files associated with a project.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d72acdc72336" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[surf_rockaway: a ruby gem]]></title>
            <link>https://kyledcrews.medium.com/surf-rockaway-a-ruby-gem-66497dc549cb?source=rss-733a042ed8b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/66497dc549cb</guid>
            <category><![CDATA[nyc]]></category>
            <category><![CDATA[gem]]></category>
            <category><![CDATA[surfing]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Kyle Crews]]></dc:creator>
            <pubDate>Wed, 09 Oct 2019 02:31:31 GMT</pubDate>
            <atom:updated>2019-10-09T02:34:07.825Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jNh-uB2LsUmm-pp7GlSjwA.jpeg" /><figcaption>image source: <a href="https://www.nytimes.com/2019/02/22/technology/nyc-tech-startups.html">https://www.nytimes.com/2019/02/22/technology/nyc-tech-startups.html</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*fkKRte1O5d732dcDswcdcw.jpeg" /></figure><p>_________________________________________________________________</p><p><strong><em>“Scratch your own itch”</em></strong> is a common theme for developers. The idea being … if you have a problem or something you need, fix it, or build it yourself. This certainly was true for a recent Ruby gem project.</p><h4>/// <em>backstory</em></h4><p>I moved to NYC near the hight of the summer. The heat, mixed with an acrid smell of garbage, didn’t bother me … I’m accustomed to oppressively hot summers and the resulting odd smells, having lived in Florida my whole life. No … what weighed on me was the idea of summer, sans the beach.</p><p>Why might I be in NYC?</p><p>Oh, glad you asked … I’m transitioning to a career in software development. NYC offered phenomenal networking opportunities, and Flatiron School provided a conduit to facilitate my professional pursuits. Finance (<em>i.e. Wall St</em>) might be what comes to mind when people think NYC … but this is changing quickly. In the early 2000s, start-ups clustered in the Flatiron district of Manhattan, an area known as Silicon Alley.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*tGcsmsjat-aaCaVr" /><figcaption>Chester Higgins Jr./The New York Times</figcaption></figure><blockquote>“Silicon Valley will no longer be the technology innovation center of the world in four years, according to the results of a survey by analyst firm KPMG. Some 60 percent of the 740 technology-industry leaders queried in the survey believe that it is likely or very likely that Silicon Valley will cede that role to New York City, with other cities rapidly catching up.” *</blockquote><h4>/// Why this is important</h4><p>Mainly, it’s exciting to see the diffuse of tech jobs on the East Coast … with the majority of those jobs concentrating in NYC. New York holds a special place in my heart and truly is the greatest city in the world. With the city reinventing itself and adapting to the tech economy (granted, not without hiccups … sorry Amazon!), there’s no doubt NYC will continue to be the beacon of innovation and influence around the world.</p><blockquote>“The truth is, we caught a <strong>wave</strong>” Seth Pinsky, former president of the NYC Economic Development Corporation from 2008.**</blockquote><p>I digress …</p><h4>/// what does surf_rockaway do ..?</h4><pre>gem install surf_rockaway</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kDmkx82v_tFnlO5gUQAX2Q.png" /><figcaption>main screen</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NxghriW4XzIDya9q7Z3b8Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*krcIgwiw5STAIHmrHP4Wrg.png" /></figure><p><em>surf_rockaway</em> is a ruby CLI gem. The primary functionality calls on ‘<em>nokogiri</em>’ and ‘<em>openURI</em>’ to scrape surf conditions from https://magicseaweed.com. Running <strong>$</strong> <strong>./bin/surf-rockaway </strong>starts the application. Users have the option to display current surf conditions or a 3-Day forecast @ Rockaway Beach, Queens, NY.</p><h4><strong>/// why build the gem?</strong></h4><p>My adoration for NYC aside, there is a <strong><em>wave</em></strong> of developers and tech workers moving to the city … many of which are coming from coastal areas like myself. I’m sure they will soon discover Rockaway Beach in Queens, as I did. Without-a-doubt the best escape from the city … and the waves are decent.</p><blockquote><em>Kyle Tip:</em> Catch a water ferry from the Wall St station. In exchange for $2.75, you get 45 minutes of fresh air and sunshine … whilst taking in the best views of Lower Manhattan, Brooklyn, and the Statue of Liberty.</blockquote><p>Armed with the knowledge that the ocean was a short ferry ride away … I soon found myself checking surf conditions at Rockaway … frequently. Hoping to find decent waves and an excuse to step away from the computer. As with most developers, a good amount of my time is spent in the terminal. This naturally leads to … 💡 → display the surf report in the terminal?</p><p>No gem pulled the data set I wanted, so I decided to build one. Cutting the jumps between browser/terminal and providing a tool for fellow NYC developers who surf.️ The result is <em>surf_rockaway</em>.</p><p>*credit: <a href="https://insights.dice.com/2019/03/05/new-york-city-eclipse-silicon-valley/"><em>https://insights.dice.com/2019/03/05/new-york-city-eclipse-silicon-valley</em></a></p><p>**credit: <a href="https://www.nytimes.com/2019/02/22/technology/nyc-tech-startups.html">https://www.nytimes.com/2019/02/22/technology/nyc-tech-startups.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66497dc549cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Walking, with benefits.]]></title>
            <link>https://kyledcrews.medium.com/walking-with-benefits-5c3e6e65022e?source=rss-733a042ed8b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c3e6e65022e</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[fitness]]></category>
            <category><![CDATA[self-improvement]]></category>
            <dc:creator><![CDATA[Kyle Crews]]></dc:creator>
            <pubDate>Tue, 17 Sep 2019 05:06:36 GMT</pubDate>
            <atom:updated>2019-09-17T05:06:36.067Z</atom:updated>
            <content:encoded><![CDATA[<h4>Incentivizing time away from your desk.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6ymhsDxlEw6QkdzH" /></figure><p>For the last three months, I have attended The Flatiron School, located in the ever stunning, New York City. I’m transitioning careers to software development. Flatiron is a coding boot-camp that teaches you the fundamentals, both technical and soft skills, needed to develop software.</p><p>The lessons, labs, and work itself are online … on a computer, server, etc. Meaning, I’m looking in a computer screen, 6–8 hrs, each day. I soon found myself falling into a pattern. A pattern that feels all too normal. Inside all morning/afternoon, briefly outside during the walk to/from home, and then indoors the rest of the night.</p><p>Sans physical activity and periods outside, I began to feel sluggish, unmotivated, anxious. At the same time, each day that I perpetuated the pattern, it became easier to find an excuse not to go outside or exercise. Exercise or nurturing my creative side, exploring the city, became a task. A task that requires me to muster up energy/motivation … both of which are lacking at the end of a long day.</p><p>This pattern is easy to fall into. One day begets another. It becomes the new normal, and you adapt. For me, this leads to complacency … and ultimately contempt. Contempt with what I’m doing, what I’m not doing, with my weight, with my draining creativity, with energy that fades earlier each day.</p><blockquote>Alas, there is a simple solution … a K.I.S.S (Keep It Simple Stupid) solution. Get outside and exercise. Not go inside, yet again, to a gym … no. Go outside. Smile at people. Breath in the fresh air. Perform some physical activity.</blockquote><p>Great, simple solution … in theory. In reality, <em>change</em> is hard. <em>Change</em> is something you have to commit to. Something you’ll battle with yourself over, daily. Something that requires conviction … a willingness to choose <em>change</em> over ease/comfort until it becomes the new norm. In times of low stress, this can seem easy and manageable. It’s the times outside of those carefree periods, i.e., the majority, that cause the issues. The times when thoughts like “I’ll make up for it tomorrow,” “I’ll just watch a few episodes on Netflix, then get out there,” “I can miss today, I’ve been doing good.” This is when <em>change</em> and self-improvement are challenged.</p><p>For me, three things can keep me focused and motivated …</p><ol><li>Financial gain or career advancement</li><li>It’s something fun or fills a curiosity void</li><li>It’s relatively frictionless</li></ol><p>… by frictionless I mean, there isn’t a lot of additional effort/energy required to perform the activity. For me, having to drive an hour each way to a gym is a huge hassle. It’s very easy for me to say, “I have too much to do today. I don’t have 3 hours for the gym”.</p><p>I studied economics in college (Go Gators!) … so incentives lend a path to solutions for most problems. Reward productive behavior. Discourage unproductive behavior. Move forward. That makes sense, but what incentives are available for getting outside for some physical activity?</p><p>Losing weight and improving your health. That’s the reward for physical activity outdoors. But that wasn’t enough … enter a smartphone and the tech economy.</p><h4>Getting paid to walk</h4><p>Money talks, you walk.</p><p>Apps that make payments for physical activity fit the bill for me. There is a clear incentive … more physical outdoor activity = more cash. This won’t replace a job or other serious form of income … but, an extra $50 here and there is always welcome.</p><h4>Below are the apps I used:</h4><ul><li><strong>Achievement (</strong><a href="https://www.myachievement.com/"><strong>website_link</strong></a><strong>):</strong></li></ul><p>Connect a partner app, like Samsung Health or Google Fit, to start earning points for activities such as walking, meditating, logging meals, and answering questions about yourself. Earn $10 for every 10,000 points.</p><ul><li><strong>Sweat-coin (</strong><a href="https://sweatco.in/"><strong>website_link</strong></a><strong>):</strong></li></ul><p>Steps = sweat-coins. Sweat-coins = goods, services, and experiences ranging from high-tech shoes to iPhones, from anti-gravity yoga classes to Apple Watches. Additionally, the UI is engaging and interactive.</p><ul><li><strong>Uber Eats delivery — via Walking:</strong></li></ul><p>This one has some limitations … you’ll need to be in a big city or a concentrated city center. If you happen to be in NYC, this is a great option. You’ll pick up food from interesting restaurants, get a chance to explore the neighborhood, and check out the apartment buildings near you.</p><p><strong>Kyle Tip:</strong> A podcast or audiobook and a good pair of headphones are a must.</p><ul><li><strong>Oscar health insurance (</strong><a href="https://www.hioscar.com/app"><strong>Website_link</strong></a><strong>):</strong></li></ul><p>Many health insurance providers will offer a reward or incentive for being active. While in NYC, my health insurance is through a company called Oscar. Steps sync from Google Fit, or similar fitness tracking apps. Each day &gt; 10,000 steps = $1 Amazon gift card. Doesn’t sound like much … but adds up pretty quickly. You’ll find yourself saying … “I gotta get those last 1,000 steps today. I want my Amazon credit for today.”</p><p>In addition to money … working with these applications gave me greater insight into the tech/gig economy. With the advent and subsequent success of apps like Uber, Postmates, and Lyft, the economy’s across the world are facing a disruptive force. On-demand work, provided by the “gig economy” is changing the once convoluted landscape for access to short-term employment.</p><p>From real-time surge pricing when demand &gt;supply … to processing orders/payments without speaking with the restaurant directly. These digital gateways are incredible and packed full of features. Features that would not be possible without modern computing/development. Having recently learned the effort/skill/thought that goes into building a functioning application, I have a new respect for these seemingly simple apps … and what’s possible. Not even a few years ago, having a company pay you to perform a physical activity seemed laughable. In 2019, all it takes is a smartphone and some comfortable shoes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c3e6e65022e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Playing with FHIR:]]></title>
            <link>https://kyledcrews.medium.com/playing-with-fhir-2e3b7568968f?source=rss-733a042ed8b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e3b7568968f</guid>
            <category><![CDATA[healthcare]]></category>
            <dc:creator><![CDATA[Kyle Crews]]></dc:creator>
            <pubDate>Tue, 18 Jun 2019 15:08:09 GMT</pubDate>
            <atom:updated>2019-06-18T15:20:23.075Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Accessing Cerner’s FHIR API</em></p><figure><img alt="Related image" src="https://cdn-images-1.medium.com/proxy/0*EOdttaHR2z0uMZQ0.jpg" /></figure><p>The first 7 years of my career, I worked at a company in the Healthcare IT sector … more specifically, we operated as a Health Information Exchange (<strong>HIE</strong>). “What is an HIE?” … yeah, I heard that quite a bit.</p><p>For those interested, an HIE operates in 3 ways:</p><ul><li>A <strong>centralized repository of clinical records. </strong>These records are collected from healthcare facilities across a community, state, or nation.</li></ul><p><em>Records are pushed from the point of care (provider’s office, hospital, ambulatory facility) to the HIE database via HL7, SMTP, or SFTP. This allows providers, along a patient’s care continuum, to securely obtain records … </em><strong><em>in real time!</em></strong></p><ul><li>A <strong>single point of connection</strong> between disparate electronic health records.</li></ul><p><em>Over 85% of provider offices, in the US, have implemented an Electronic Health Record (EHR) system. For one EHR system to communicate with another one, a costly interface must be built for each referral partner. With an HIE, healthcare facilities build a single interface to a database. With most interface projects costing ~$10,000, this provides huge cost savings and outsources the technical overhead away from the facility itself.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QRqBXau4H-lHqK3B.jpg" /></figure><ol><li>A <strong>secure exchange where documents, records, images, and other</strong> <strong>diagnostic assets</strong> flow seamlessly between facilities, electronically or by eFax.</li></ol><p>Lastly, a SaaS based platform allows providers and support staff to use traditional/established methods of communication, in a unified platform.</p><p>##№#####################</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*KTV7bdVxWOxe5QS-wbbVLw.jpeg" /></figure><p>In theory, this sounds great. It even sounds doable (on some level). After all, we’re living in the age of APIs &amp; hosted services like AWS or Google Cloud … where Instagram handled 10M+ active users with a team of 6. Companies are able to access and share large volumes of data, with some minor refactoring of code and a few clicks. But the reality, in healthcare, is far (<em>far, far, far</em>) from the this.</p><p>HIE’s offer a solid business case, the case for a reduction in duplicate diagnostic testing, an overall reduction in healthcare cost, and a case for improving patient care. The issue? … most healthcare records are shared via good ol&#39; fax and a legacy framework for automated exchange of electronic records called HL7.</p><p>HL7 interfaces are complicated, expensive, limited in their functionality, and suffer from a lack of standardization across implementations. These barriers prevent the rapid and frictionless exchange of records across healthcare settings. Enter the newest iteration of HL7, FHIR (Fast Healthcare Interoperability Resources) … an API, nonetheless.</p><p><strong>“The philosophy behind FHIR is to build a base set of resources that, either by themselves or when combined, satisfy the majority of common use cases. FHIR resources aim to define the information contents and structure for the core information set that is shared by most implementations,” HL7 says on its website.</strong></p><p>This means faster implementations, easier coordination of care, lower cost and real-time request without the need for large infrastructure. Cerner, one of the big three electronic health records companies, has a developer portal where you can explore what’s possible with FHIR. <a href="https://code.cerner.com/">https://code.cerner.com/</a></p><p>Let’s look at how to access Cerner’s FHIR API</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HH3x1fITolE1J-o3" /></figure><ul><li>fork the sample SMART FHIR application from the Cerner’s Development github to your account</li></ul><p><strong>$ ~ git clone </strong><a href="/service/mailto:git@github.com">git@github.com</a>:cerner/smart-on-fhir-tutorial.git</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*USgC7gDB67l5D9w6urSG9Q.png" /></figure><ul><li>Obtain your authorization code from your profile on <a href="https://code.cerner.com/">https://code.cerner.com</a></li><li>Located in the lib folder, this is a version of fhir-client.js, and install all dependencies</li><li>Add your authorization code to the launch.html file</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PUlowvhRJevSM5bqLcQxXQ.png" /></figure><p><strong>launch.html</strong> is the SMART app’s initial entry point and in a real production environment, would be invoked by the application launching your SMART app (for instance, the EHR or patient portal). In the <a href="http://docs.smarthealthit.org/">SMART documentation</a>, this is your app’s “launch URL”. In this tutorial, this page will be invoked when you launch your app from Cerner’s <a href="https://code.cerner.com/developer/smart-on-fhir/apps">code console</a>.</p><p>As the entry point into your SMART app, this page will kick-off the SMART authorization workflow.</p><ul><li>Lastly, launch-patient.html to open the sandbox. Have fun exploring.</li></ul><p>Similar to the launch.html above, this file is the entry point when launching a standalone patient application. This file was created for convenience factor. In production, you may want to create a separate app for patient facing vs provider facing version of the app. More info on this in <a href="https://engineering.cerner.com/smart-on-fhir-tutorial/#standalone-app-launch-for-patient-access-workflow">Standalone App Launch for Patient Access Workflow</a> section.</p><p><strong>launch-smart-sandbox.html</strong></p><p>This is a clone of the launch.html above. This file was created for convenience factor to allow you to use the same app to configure it against the SMART Health IT Sandbox. More info on this in <a href="https://sandbox.smarthealthit.org/">Run your app against SMART Health IT Sandbox</a> section.</p><p>full instructions can be found here &gt;&gt; <a href="https://engineering.cerner.com/smart-on-fhir-tutorial/#project-setup">https://engineering.cerner.com/smart-on-fhir-tutorial/#project-setup</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e3b7568968f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>