<?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 Paul Dariye on Medium]]></title>
        <description><![CDATA[Stories by Paul Dariye on Medium]]></description>
        <link>https://medium.com/@pauldariye?source=rss-50a54e22d8f9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*p2QICbkA2gSnP-Qum5bPZw.png</url>
            <title>Stories by Paul Dariye on Medium</title>
            <link>https://medium.com/@pauldariye?source=rss-50a54e22d8f9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 07:44:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pauldariye/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[Hackdays@Andela]]></title>
            <link>https://medium.com/the-andela-way/hackdays-andela-913b900330a0?source=rss-50a54e22d8f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/913b900330a0</guid>
            <category><![CDATA[music]]></category>
            <category><![CDATA[sonos]]></category>
            <category><![CDATA[hackday]]></category>
            <category><![CDATA[hackathons]]></category>
            <dc:creator><![CDATA[Paul Dariye]]></dc:creator>
            <pubDate>Wed, 29 Aug 2018 09:47:39 GMT</pubDate>
            <atom:updated>2018-08-29T09:47:39.248Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*chuNspv70bxKRSdWxqjA-g.png" /><figcaption>Final UI for the Vibez Sonos Controller.</figcaption></figure><p>Hackathons are a great way to get creative and build things you would otherwise not have the time or the motivation to do so. Participating at Andela’s first internal <a href="https://hackdays.andela.com/">#hackdays</a> was one such occasion. This first hackathon was open to only members of the technology team. There were nine teams in totally with a minimum headcount of 2 for each team. Team Vibez–a play on good vibes–comprised of two engineers–myself, Jumoke Oladimeji–and a product coordinator, Sharon Telewa. and we called ourselves <strong>Vibez</strong>–a play on good vibes. The idea we settled on solved a problem that occurs quite often at offices and workspaces that use shared music services like Sonos.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JQqxPjbEq03V3kvClJ7kVA.png" /><figcaption>A post on slack raising concerns about the lyrical content and volume level of music played in the office.</figcaption></figure><h4>Problem</h4><p>In an office space that uses a shared music streaming system like Sonos, it is difficult to control what is played in terms of lyrical content (crude, vulgar, etc), volume level, etc. This can lead to a less than ideal work environment for colleagues and others at the in the office.</p><h3>Solution</h3><p>A custom controller for the Sonos line of products that will run a profanity check on all song lyrics in the background to ensure that the song being played matches some predefined preferences (i.e content rating is PG vs R).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mfceV3ICQ9csfa_54BIgEg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h67DKxGjWo56yTVlsl5plw.jpeg" /><figcaption>Quick sketch of what we had in mind before starting to build.</figcaption></figure><h4>How it works</h4><p>The Vibez controller discovers the Sonos device on the local network, then it finds and fetches the lyrics of the song currently playing and runs it through the profanity detection algorithm. If the lyrics contain any vulgarities and the predefined rating on content is R, the song is skipped.</p><h4>Technologies used</h4><p>Hardware</p><ul><li><a href="https://www.sonos.com/en-us/shop/connect.html">Sonos Connect</a> + <a href="https://www.jbl.com/flip/JBL+FLIP+III.html">JBL Flip3</a> Bluetooth speakers</li></ul><p>Software</p><ul><li><a href="https://www.npmjs.com/package/musixmatch-node-sdk">MusicXmatch</a> library to get song lyrics</li><li><a href="https://github.com/bencevans/node-sonos">Node-Sonos</a> — Sonos Media Player Interface/Client</li><li>A <a href="https://algorithmia.com/algorithms/nlp/ProfanityDetection">profanity detection algorithm</a> which employs NLP from Algorithmia</li><li>Music player styles by <a href="https://codepen.io/shayanea/pen/yvvjya">Shayan</a></li></ul><h3>Demo</h3><p>Here’s a demo of what we built.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F5oR8gaRDaLo%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D5oR8gaRDaLo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F5oR8gaRDaLo%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c15d57261d5f3191c07e37b85b5e353c/href">https://medium.com/media/c15d57261d5f3191c07e37b85b5e353c/href</a></iframe><p><strong>What’s next?</strong></p><ul><li>Make source code publicly available and port code to an executable for all platforms using <a href="https://electronjs.org/">electron</a>.</li></ul><p>Only good vibes!</p><p><strong><em>Do you need to hire top developers? </em></strong><a href="https://hire.andela.com/need-more-devs"><strong><em>Talk to Andela to help you scale</em></strong></a><strong><em>. <br>Are you looking to accelerate your career as a developer? Andela is currently hiring senior developers. </em></strong><a href="http://bit.ly/2vpmyk8"><strong><em>Apply now</em></strong></a><strong><em>.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=913b900330a0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-andela-way/hackdays-andela-913b900330a0">Hackdays@Andela</a> was originally published in <a href="https://medium.com/the-andela-way">The Andela Way</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to build a fully automated kanban power-up for your GitHub Project board using a custom webhook]]></title>
            <link>https://medium.com/the-andela-way/how-to-build-a-power-up-for-your-github-project-board-for-project-management-344d5b380a68?source=rss-50a54e22d8f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/344d5b380a68</guid>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[the-andela-way]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Paul Dariye]]></dc:creator>
            <pubDate>Wed, 22 Aug 2018 14:23:59 GMT</pubDate>
            <atom:updated>2018-08-23T11:51:22.948Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>TLDR; You can tune-up your GitHub Project board with a custom web-hook integration to meet your software development project management needs. <a href="https://github.com/pauldariye/kanbanize">You can checkout the code github</a>, <a href="https://glitch.com/edit/#!/remix/kanbanize/ca1589ea-ae22-4483-a2ee-c0b4c426e43f">remix it on glitch</a>, or <a href="https://deploy.now.sh/?repo=https://github.com/pauldariye/kanbanize&amp;env=TOKEN&amp;env=WEBHOOK_SECRET&amp;env=OWNER&amp;env=RESPOSITORY">deploy a working instance for repository with zeit/now.</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mRisEbXakAe62kP4HUYRAw.png" /><figcaption>Screenshot of a project board used by the creative team at Andela using a custom webhook integration I built for the team.</figcaption></figure><p>Managing the software development process can be a bit of a <a href="https://www.urbandictionary.com/define.php?term=P.I.T.A">PITA</a>. This is often not due to the actual coding aspect of it but more often than not, it is due to the tools fatigue you get from incorporating different tools to manage the whole process. And of course, <a href="https://www.google.com/search?q=software+project+management+tools&amp;oq=software+project+management+tools&amp;aqs=chrome..69i57j0l7.6776j0j1&amp;sourceid=chrome&amp;ie=UTF-8">there are a million and one tools</a> out there to “help your team focus on the work and not the process”, but in truth, no one tool out there usually fits the bill, at least not entirely–and this is understandable, after all no two teams are alike or work in the exact same way.</p><p>In this post you’ll build a fairly simple and extensible kanban power-up for GitHub Projects that automates the triaging of new issues to project boards and to track issue statuses automatically.</p><p>The problem you’re solving for here is pretty straightforward. GitHub already has support for managing your projects on a kanban-like board. And GitHub Projects allows for some automation, for example you can set up the native project column automation to add a new card when an issue is opened or closed and move issues along the project column when a pull request is submitted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aHOnIOMIV51jDuFaLidqLg.png" /><figcaption>Screenshot of an overview of <a href="https://help.github.com/articles/about-project-boards/">Github Projects</a> features.</figcaption></figure><p>As useful as these automations are, there’s still room for improvement. For example, with the current setup, you’re unable to automate the movement of issues along your project columns (or pipelines) to track the status of a feature/issue on a project board. Also, you’re unable to triage issues between multiple projects in a repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*7RE3mbYL77ndaHqkMsn0OA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*otWpUhSLWnjTQ26ztEPqYw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*ImOFDMqiSbroqpHFSSrykg.png" /><figcaption>Built-in automations for Github Projects</figcaption></figure><p>With this power-up, you’ll solve the following:</p><ol><li>Moving a project card along the board automatically.</li><li>Triaging issues to different project boards automatically.</li></ol><p>You’ll make use of the GitHub labels feature to solve these, with the webhook events ‘labeled’ and ‘unlabeled’ as the triggering mechanism.</p><p>The final solution will look this:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F2tKyrZ2cWAGogBYUny%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fgithub-projects-integrations-2tKyrZ2cWAGogBYUny&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F2tKyrZ2cWAGogBYUny%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="232" frameborder="0" scrolling="no"><a href="https://medium.com/media/c924c61bce33c02bd22dcf81d6114029/href">https://medium.com/media/c924c61bce33c02bd22dcf81d6114029/href</a></iframe><p>GitHub has a few things that make it super simple to customize:</p><ul><li>A powerful API. You’ll be using the new, all-powerful <a href="https://developer.github.com/v4/">GraphQL API v4</a> and a touch of the old <a href="https://developer.github.com/v3/">GitHub REST API v3</a>.</li><li>A <a href="https://developer.github.com/webhooks/">web-hook</a> that allows you to subscribe to events in your github repository, in our case you’ll subscribe to the ‘labeled’ and ‘unlabeled’ events on an issue.</li><li>A <a href="https://help.github.com/articles/creating-a-label/">labeling feature</a> for issues with a name, description, and color.</li></ul><h3>Configuring your GitHub repository</h3><p>Let’s start with the most challenging bit in my opinion, creating the right taxonomy for our issue labels. Remember we’re looking to solve for two things, to move an issue along the project board based on it’s status and to triage issues to a project board. You’ll employ the not-so-often used <strong>description</strong> property of a label to help us identify an issue’s status as well as the project it belongs to.</p><p>Before I built this solution which is part of a project management solution our creative team at <a href="https://andela.com/">Andela</a> uses, I reached out to GitHub support to figure out the best way to accomplish this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WZaWp_zqxu7Bb9fpIniFpA.png" /><figcaption>Email correspondences with Github Support</figcaption></figure><p>I ended up employing the two recommendations from Ivan, the GitHub support representative. With the right labels, you can subscribe to the ‘labeled’ and ‘unlabeled’ events and use the payload delivered to your web-hook to add an issue to a project board and to move that issue (now a project card) along our project columns.</p><p>GitHub labels have three properties that you can configure, a name, a description, and a color. You’ll use the name and description properties to set up our new labeling system. Feel free to go berserk with your label coloring scheme!</p><h4>Tracking issue progress using status labels</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vuCSEWhhQYp7j3D9R_fyQQ.png" /><figcaption>Tracking issue status with <a href="https://help.github.com/articles/creating-a-label/">Github labels</a>.</figcaption></figure><p>Create a status label by giving it a name that represents a stage in issue management process and description of ‘status&#39;.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bAc2DST65dOzFYDOuzJT6A.png" /><figcaption>A Github <strong>status</strong> label.</figcaption></figure><p>The status labels you create will mirror the columns in your project board. As in the screenshot above, you’ll have the following statuses/project columns:</p><ul><li><strong>incoming</strong> — all new tickets.</li><li><strong>scheduled</strong> — all tickets that have been reviewed.</li><li><strong>in progress</strong> — all tickets that are being worked on.</li><li><strong>in review</strong> — all tickets that have been worked on and are awaiting approval.</li><li><strong>completed</strong> — all tickets that have been worked on and have been reviewed and accepted.</li><li><strong>canceled</strong> — all tickets that were canceled for any possible reasons.</li><li><strong>blocked</strong> — all tickets that are being blocked for one reason or another.</li></ul><p>While these might seem like a lot, I think it more closely mirrors what actually happens in most teams. There can be only one issue label with the description of status. When you implement this, there will be only one label with the description ‘status’ on an issue.</p><h4>Triaging issues to project boards using labels</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-i7cpnFt3txcb514KUepOA.png" /><figcaption>A list of Github Projects for <a href="https://github.com/pauldariye/kanbanize">kanbanize</a>.</figcaption></figure><p>To triage issues to different projects, you’ll use a similar technique like you did to track issue statuses. You guessed it, labels to the rescue again! However, naming things can be hard so let’s employ <a href="https://semver.org/">semvar</a>–naming convention for our projects. For example, imagine you’re managing a huge open source library, you may want to employ the major version releases as project names like so <strong>v1.0.0</strong>, <strong>v2.0.0</strong>, and so on. Again this is just my preference. You can name your projects anything you want, the only requirement is to add ‘project’ as the description. When you implement this, there will be only one label with the description ‘project’ on an issue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4EWzWQ5i_e5uPiDcvBgWcQ.png" /><figcaption>Example of a Github <strong>project</strong> label. This example uses <a href="https://semver.org/">semvar</a> versioning for project names.</figcaption></figure><p>Of course your project names can be completely different just ensure that</p><ol><li>Your project name match labels with the label description ‘project’.</li><li>Your project columns match labels with the label description ‘status’.</li></ol><h4>Configuring a GitHub web-hook</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vJs4ppUUjK0o21rufHyAbQ.png" /><figcaption>Configuring a web-hook.</figcaption></figure><p>To add a new web-hook to your GitHub repository, find the settings tab in the upper right hand corner in your github home.</p><p>From the screenshot:</p><ol><li>Enter a url that the payload will be delivered to your web-hook. For local development, you can use <a href="http://ngrok.io/">ngrok</a> or <a href="https://localtunnel.github.io/www/">localtunnel</a>.</li><li>Select ‘application/json’ as the content type for the payload sent to your web-hook through the url you entered in 1 above.</li><li>Enter a simple secret that you’ll use to sign the request you get from github to validate it.</li><li>Pick individual events to tailor what events you subscribe to.</li><li>Subscribe to event issues.</li><li>Hit save.</li></ol><p>That’s it!</p><p>Simple as that, you now have a fully configured GitHub web-hook. The last thing you need to do before diving into the code is to create a GitHub token. This will allow you to authenticate your requests to GitHub’s API. To get a personal token, <a href="https://github.com/settings/tokens">go to your GitHub settings</a>, create a new token giving it a memorable name, and <strong>copy the token to a secure place</strong>.</p><p>You’re now done with Github, time for some code!</p><h3>1-minute introduction to GraphQL</h3><p>To work with your Github issues and projects, you’ll use the new<a href="https://developer.github.com/v4"> GitHub GraphQL API v4</a>. Before diving into the code though, I thought it may be useful to give you a brief intro to GraphQL. I won’t do justice to GraphQL here so you can <a href="https://graphql.org/">click this link to learn more about GraphQL</a>.</p><p>GraphQL is a query language for your API built by the amazing folks at Facebook. The specifications for this query language are such that it allows you to essentially tell the server exactly want you want from it.</p><p>Here’s a somewhat contrived example of how you construct a request to a GraphQL service:</p><pre>{ <br>  profile {<br>   id<br>   name<br>   email<br>   likes<br>  }<br>}</pre><p>The response from the server will looks like this:</p><pre>{<br>  &quot;data&quot;: {<br>    &quot;profile&quot;: {<br>       &quot;id&quot;: &quot;someuniquealphanumerickey&quot;,<br>       &quot;name&quot;: &quot;Jane Doe&quot;,<br>       &quot;email&quot;: &quot;jane@doe.com&quot;,<br>       &quot;likes&quot;: 200<br>     }<br>  }<br>}</pre><p>Notice how the JSON returned from the server matches the query you constructed!</p><p>If you come from the world of REST APIs, you know that in order to consume an API, you need to send GET, POST, PUT, PATCH, and DELETE requests to different endpoints on the server. Now imagine that instead of consuming the different endpoints that may exist for any of these actions, you can access all that data through one endpoint, picking and selecting the fields you need, and traversing through the data using a simple, intuitive, and self-documenting interface.</p><p>Verbatim from the <a href="http://graphql.github.io/learn/schema/">documentation</a>, “every GraphQL service defines a set of types that completely describe the set of possible data you can query on the service”. This means that there’s always a schema that defines how communication is carried out between the server and the client. And in this schema are types that you define for every GraphQL service, two of these are special types– query and mutation–out of several that may exist in the schema. These two special types define the entry point of every request to the GraphQL service. And of these two types, the query is most often used to make requests to the service and it is free of side-effects, whereas the mutation modifies objects on the service.</p><p>So, in our case, instead of using the <a href="https://developer.github.com/v3/#root-endpoint">Github REST API v3</a> (although, you’ll use this to edit the issue labels), that has a root endpoint–<a href="https://api.github.com/">https://api.github.com</a>–and a gazillion category endpoints (seriously, I counted over 489 endpoints and <a href="https://developer.github.com/v3/apps/available-endpoints/">you can count them yourself here</a>), we can leverage one endpoint to meet all our needs–<a href="https://api.github.com/graphql">https://api.github.com/graphql</a>.</p><p>You’ll see examples of GraphQL queries and its advantages below as we figure out the right requests for our power-up.</p><h3><strong>Consuming the GitHub GraphQL API v4</strong></h3><p>Now, let’s dig into <a href="https://developer.github.com/v4/">GitHub’s GraphQL API v4 documentation</a> to figure out what it permits us to do. We need to be able to query the issue and projects fields from the repository object. Also, we need to be able to mutate (or update) a project card and project board. Head over to the <a href="https://developer.github.com/v4/explorer/?variables=%7B%7D&amp;query=query%20%7B%0A%20%20__type%28name%3A%20%22Repository%22%29%20%7B%0A%20%20%20%20name%0A%20%20%20%20kind%0A%20%20%20%20description%0A%20%20%20%20fields%20%7B%0A%20%20%20%20%20%20name%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D">GitHub GraphQL API Explorer</a> to see all the fields on the repository object.</p><pre>query {<br>  __type(name: &quot;Repository&quot;) {<br>    name<br>    kind<br>    description<br>    fields {<br>      name<br>    }<br>  }<br>}</pre><p>Once on the <a href="https://developer.github.com/v4/explorer/?variables=%7B%7D&amp;query=query%20%7B%0A%20%20__type%28name%3A%20%22Repository%22%29%20%7B%0A%20%20%20%20name%0A%20%20%20%20kind%0A%20%20%20%20description%0A%20%20%20%20fields%20%7B%0A%20%20%20%20%20%20name%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D">API Explorer</a>, enter query above and you should see a response that looks like the one below (I’ve truncated the output to save space).</p><pre>{<br>  &quot;data&quot;: {<br>    &quot;__type&quot;: {<br>      &quot;name&quot;: &quot;Repository&quot;,<br>      &quot;kind&quot;: &quot;OBJECT&quot;,<br>      &quot;description&quot;: &quot;A repository contains the content for a project.&quot;,<br>      &quot;fields&quot;: [<br>        ...</pre><pre>        {<br>          &quot;name&quot;: &quot;issue&quot;<br>        },</pre><pre>        ...</pre><pre>        {<br>          &quot;name&quot;: &quot;projects&quot;<br>        },</pre><pre>        ...</pre><pre>      ]<br>    }<br>  }<br>}</pre><p>From this, you see that we’re able to query on the issue and projects fields of any repository. When working with a GraphQL service, you’re mostly querying or mutating fields of an object, in this case a GitHub repository object. All in all we need to construct the queries on the issue and projects fields to do the following:</p><ul><li>Find an issue by number.</li><li>Find a project by name.</li><li>Find all project columns.</li><li>Add an issue to a project column.</li><li>Move a project card to a different column.</li><li>Delete a card from a project.</li></ul><p>With these, we’ve got everything we need to write the necessary queries and mutations for the web-hook.</p><h4>GraphQL operations</h4><p>Here we’ll go through each of the query and mutation operations listed in the previous section so that you understand what’s going on.</p><p>To test these out as we go along, you can use the <a href="https://developer.github.com/v4/explorer/?variables=%7B%7D&amp;query=query%20%7B%0A%20%20__type%28name%3A%20%22Repository%22%29%20%7B%0A%20%20%20%20name%0A%20%20%20%20kind%0A%20%20%20%20description%0A%20%20%20%20fields%20%7B%0A%20%20%20%20%20%20name%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D">GitHub GraphQL API Explorer</a> with the following object containing the required query variables.</p><pre>{<br>  &quot;owner&quot;: &quot;ENTER_GITHUB_USERNAME&quot;,<br>  &quot;name&quot;: &quot;ENTER_GITHUB_REPO_NAME&quot;,<br>  &quot;number&quot;: &quot;ENTER_GITHUB_ISSUE_NUMBER&quot;,<br>  &quot;projectName&quot;: &quot;ENTER_GITHUB_REPO_PROJECT_NAME&quot;<br>  &quot;issue&quot;: {<br>    &quot;contentId&quot;: &quot;ENTER_CONTENT_ID&quot;,<br>    &quot;projectColumnId&quot;: &quot;ENTER_PROJECT_COLUMN_ID&quot;<br>  },<br>  &quot;card&quot;: {<br>    &quot;cardId&quot;: &quot;ENTER_PROJECT_CARD_ID&quot;,<br>    &quot;columnId&quot;: &quot;ENTER_PROJECT_COLUMN_ID&quot;<br>  }<br>}</pre><p><strong>Note</strong>: The explorer makes use of real production data so you may want to try running these queries using a test repo.</p><h4>FindIssue</h4><p>Find an issue by number.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/65eac51cf0ef574c9ca914a2c1e7cdec/href">https://medium.com/media/65eac51cf0ef574c9ca914a2c1e7cdec/href</a></iframe><p>With this query, you’re looking up an issue by its number, and picking the following fields id, title, projectCards, labels etc. You’re also telling the server to return the first hundred project cards and the first one-hundred labels associated with the issue.</p><h4>FindProject</h4><p>Find a project by name.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7747b34cab93f11b9683904663495327/href">https://medium.com/media/7747b34cab93f11b9683904663495327/href</a></iframe><p>With this query, you’re looking up project columns by projectName and picking the first project matching it on the repository object, and picking the first column of that project board and the first twenty cards of that column.</p><h4>FindProjectColumns</h4><p>Find all project columns.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/246ef111d83d2d1aeb07e66247370b5f/href">https://medium.com/media/246ef111d83d2d1aeb07e66247370b5f/href</a></iframe><p>This query looks up a project by projectName (aka label) and selects the first two projects on the repository object along with first twenty columns of that project board and the first one-hundred cards of each column. It is an example of a complex and expensive query. And as you would expect with any api service, Github provides <a href="https://developer.github.com/v4/guides/resource-limitations/">a guideline on how to moderate api requests</a>. This single call replaces probably 10 or more REST requests. And that’s another advantage of GraphQL, a single complex call replaces possible thousands of REST requests!</p><p>The server cost for this query is:</p><p>1 (one repository) + 1*2 (first two project cards) + 1*2*20 (first twenty columns for each project card) + 1*2*20*100 (first one hundred cards of a project column) = 4, 043 total nodes.</p><p>To get the score, you divide this by 100, meaning that the score is <strong>40.43</strong>!</p><p>GitHub’s GraphQL service has a limit of <strong>5000 points per hour </strong>and you’ve used up only <strong>0.8% </strong>for this query.<strong> </strong>What power at your disposal!</p><h4>AddProjectCard</h4><p>Add an issue to a project column. This produces a side-effect since we updating the project object to include a new card.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/45a83087662e549715c0cd53ddf665f6/href">https://medium.com/media/45a83087662e549715c0cd53ddf665f6/href</a></iframe><h4>MoveProjectCard</h4><p>Move a project card to a different column. This produces a side-effect since we’re updating the project column.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d2252b4986085b1fc33100c91ba48f78/href">https://medium.com/media/d2252b4986085b1fc33100c91ba48f78/href</a></iframe><p>Fields like cardEdge are provided on a mutation request to select what the server will return to you once the mutation operation is complete.</p><h4>DeleteProjectCard</h4><p>Delete a card from a project.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a1d8124bb591fd6e3e91b16074a95c22/href">https://medium.com/media/a1d8124bb591fd6e3e91b16074a95c22/href</a></iframe><p>Here’s you’re asking the server to return the deletedCardId once the deleteProjectCard mutation is complete.</p><p>Now that you have the queries and mutations and are sure they work, we need to set up the project locally and bring it all together.</p><h4>Set up our project locally</h4><p>Let’s wire this thing up!</p><blockquote><a href="https://github.com/pauldariye/kanbanize">You can checkout the code on github</a> or <a href="https://glitch.com/edit/#!/remix/kanbanize/ca1589ea-ae22-4483-a2ee-c0b4c426e43f">remix it on glitch</a>.</blockquote><pre><a href="https://github.com/pauldariye/kanbanize">kanbanize</a><br>├── README.md<br>├── actions<br>│   ├── index.js<br>│   ├── labeled.js<br>│   └── unlabeled.js<br>├── bin<br>│   ├── start-dev.sh<br>│   └── start-ngrok.js<br>├── config<br>│   ├── components<br>│   └── index.js<br>├── deploy.sh<br>├── graphql<br>│   ├── index.js<br>│   ├── mutation<br>│   └── query<br>├── index.js<br>├── lib<br>│   ├── crypto.js<br>│   └── github.js<br>├── now.json<br>├── package.json</pre><p>Here’s our project structure. You can try to recreate this or <a href="https://github.com/pauldariye/kanbanize">clone it from GitHub</a>. We’ll go through each relevant module.</p><p>If you’re recreating it run the following code:</p><pre>mkdir kanbanize &amp;&amp; cd kanbanize &amp;&amp; yarn init -y # create a ne directory</pre><pre>mkdir actions app bin config graphql lib # create subdirectories</pre><pre>yarn add micro crypto graphql-request github-api joi async # install dependencies</pre><pre>yarn add micro-dev dotenv-safe nodemon ngrok concurrently --dev # install devDependencies</pre><p>If you’re cloning, run the following in your terminal:</p><pre>git clone <a href="/service/mailto:git@github.com">git@github.com</a>:pauldariye/kanbanize.git</pre><pre>cd kanbanize &amp;&amp; yarn # install dependencies</pre><pre>cp .env.example .env # Enter the env variables</pre><pre>yarn dev             # Run dev server; Visit https://localhost:3000</pre><p>Again, to save time, we’ll go through only important bits of the code.</p><blockquote><a href="https://github.com/pauldariye/kanbanize">You can checkout the code on github</a> or <a href="https://glitch.com/edit/#!/remix/kanbanize/ca1589ea-ae22-4483-a2ee-c0b4c426e43f">remix it on glitch</a>.</blockquote><h3>Our “app”</h3><p>This is your main server file that uses <a href="https://zeit.co/blog/micro-8">micro</a>, a small and performant library for building asynchronous HTTP services built by the amazing team at <a href="https://zeit.co/">Zeit</a>. As you can see, the entire app is just one asynchronous function. No big deal!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ceae5424485320c3528d1070f1c52eee/href">https://medium.com/media/ceae5424485320c3528d1070f1c52eee/href</a></iframe><p>Here are notes on what the <strong>app</strong> function (request handler) does:</p><ul><li>It the <strong>content-type</strong> delivered to our web-hook to ensure it is <strong>application/json</strong> like we configured in our web-hook configuration. [LC14]</li><li>It validates the request for the presence of an <strong>x-hub-signature</strong>. [LC28]</li><li>Highlight this if you’ve read this far (trying to see who my real friends are).</li><li>It validates the request for the presence of an <strong>x-github-event</strong> header and checks that the event type is <strong>issues</strong>. [LC35]</li><li>It validates the request for the presence of an <strong>x-github-delivery</strong> header. [LC49]</li><li>It checks that the x-hub-signature sent in the request body is the right one by comparing the hash value you get to validate the request body using the signRequestBody method with the secret key you created when configuring the web-hook . [LC56]</li><li>It checks that you have a defined handler for the payload action. [LC63]</li><li>Finally, it invokes your handler for the payload action. [LC71]</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/504ce8dc2f0e9a321dc6735f0f757f70/href">https://medium.com/media/504ce8dc2f0e9a321dc6735f0f757f70/href</a></iframe><p>The <strong>signRequestBody</strong> function generates a cryptographically signed hash-based message authentication code (HMAC) with a given key (web-hook secret) and string (our request body).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/be56a4fbb300dc66b8f199dca0462df8/href">https://medium.com/media/be56a4fbb300dc66b8f199dca0462df8/href</a></iframe><p>Here you’re initializing an authenticated graphqlClient using <a href="https://github.com/prismagraphql/graphql-request">graphql-request</a> library and an issues client using the <a href="https://github.com/github-tools/github">github-api</a> lib which is a wrapper for the GitHub’s REST API.</p><p>Now you may be asking yourself why you’re using the REST API after all the spiel I gave earlier on the merits of GraphQL. Great question and thought! As with any new technology or paradigm, it takes some time to retroactively replace what was formerly in place. You can read more about <a href="https://githubengineering.com/the-github-graphql-api/">why GitHub decided to move to GraphQL</a> and track the <a href="https://developer.github.com/v4/changelog/">GraphQL schema changelog</a> to learn more. A more straightforward answer is that we need the REST API to be able to update our github issue, i.e to ensure we have only one status or project label at a time.</p><p>Other notes about code in thelib/github.js module:</p><ul><li>removeDups : This function checks to see if an issue has other labels besides the recently labeled that have a project or status description and removes them. [LC19]</li><li>addProjectCard : This function adds a project name that matches the label name with description project. [LC45]</li><li>deleteProjectCard: This function removes a card from a project card. [LC69]</li><li>moveProjectCard : This function moves a card to a project column that a label name with description status. [LC83]</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8db43cb098a704103110bfec49859835/href">https://medium.com/media/8db43cb098a704103110bfec49859835/href</a></iframe><p>Here you’re handling adding a card to a project and moving the card along project columns using the ‘labeled’ event (action) function which accepts the event payload from GitHub.</p><p>The handler does the following:</p><ul><li>It finds the issue with the number matching the one received from the event payload and a project by name (or label) using the queries we defined earlier. [LC18]</li><li>It then checks the issue’s description to either addProjectCard for a project label or moveProjectCard for a project status label. [LC24]</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/587722d9ddcd9e1a4321622f2d1158f4/href">https://medium.com/media/587722d9ddcd9e1a4321622f2d1158f4/href</a></iframe><p>Here you’re handling what happens when a label with a project description is removed from a card. In this case we deleteProjectCard from the project board.</p><h3>Summary</h3><p>That’s it! Of course this is only the tip of the iceberg when it comes to what you can do with Github and other tools like it (Gitlab, bitbucket, etc) to bring your software development process ever closer to you codebase. Give this library a try and <a href="https://twitter.com/@pauldariye">let me know what you think</a>. Feel free to contribute more custom actions.</p><blockquote><a href="https://github.com/pauldariye/kanbanize">You can checkout the code on github</a>, <a href="https://glitch.com/edit/#!/remix/kanbanize/ca1589ea-ae22-4483-a2ee-c0b4c426e43f">remix it on glitch</a>, or <a href="https://deploy.now.sh/?repo=https://github.com/pauldariye/kanbanize&amp;env=TOKEN&amp;env=WEBHOOK_SECRET&amp;env=OWNER&amp;env=RESPOSITORY">deploy a working instance for repository with zeit/now</a>.</blockquote><p>Some noteworthy projects that integrate nicely with Github to give you much more powerful project management features include:</p><ol><li><a href="https://www.zenhub.com/">Zenhub</a> — Agile Project Management for Github</li><li><a href="https://waffle.io/">Waffle.io</a>–Developer-first Project Management for Teams on Github</li></ol><p>Be sure to check these out as well.</p><p>Sincere thanks to <a href="https://medium.com/@tamssokari">Tams Sokari</a>, <a href="https://medium.com/@Soloxpress">Solomon Osadolo</a> and Akinjide Bankole for reviewing and proofreading this post.</p><p><strong><em>Do you need to hire top developers? </em></strong><a href="https://hire.andela.com/need-more-devs"><strong><em>Talk to Andela to help you scale</em></strong></a><strong><em>. <br>Are you looking to accelerate your career as a developer? Andela is currently hiring senior developers. </em></strong><a href="http://bit.ly/2vpmyk8"><strong><em>Apply now</em></strong></a><strong><em>.</em></strong></p><p><strong>Thanks for reading. Give this post a 👏🏿 if you enjoyed it to help others discover it.</strong></p><p><strong>Say hi on </strong><a href="https://twitter.com/@pauldariye"><strong>twitter</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=344d5b380a68" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-andela-way/how-to-build-a-power-up-for-your-github-project-board-for-project-management-344d5b380a68">How to build a fully automated kanban power-up for your GitHub Project board using a custom webhook</a> was originally published in <a href="https://medium.com/the-andela-way">The Andela Way</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sometimes all I need is for someone to say it’s okay, that’s normal]]></title>
            <link>https://medium.com/@pauldariye/sometimes-all-i-need-is-for-someone-to-say-its-okay-that-s-normal-d29e32e2b7c4?source=rss-50a54e22d8f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/d29e32e2b7c4</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[acceptance]]></category>
            <category><![CDATA[life-lessons]]></category>
            <dc:creator><![CDATA[Paul Dariye]]></dc:creator>
            <pubDate>Sun, 12 Aug 2018 13:01:01 GMT</pubDate>
            <atom:updated>2018-08-12T13:01:01.387Z</atom:updated>
            <content:encoded><![CDATA[<p>I can’t recall how many times I’ve questioned my actions, daily routines, and just overall how I lead my life and the conflicts I face day to day. In reality I just want someone to tell me hey Paul, don’t sweat it most people go through that.</p><p>If you’re like me, i.e human, you’ve probably been at crossroads, at places where everything can seem faulty and contradictory, and misplaced. These feelings I don’t imagine are relegated to any one human being. My weirdness in whatever form is not unique as best as I try to convince myself that it is and yet it is because it is me (and not you).</p><p>And if you’re an alien please <a href="https://twitter.com/@pauldariye">contact me</a>. I’m almost convinced I’m alien as well :).</p><p>Facebook tells me everyone has a better life. Twitter says everyone is smarter. LinkedIn says everyone is more successful. Even Netflix tells me how extraordinary actors and stars are. When can anything point me to a place where I feel not out of place, not less but on equal footing?</p><p>The conclusion is acceptance. Acceptance that you are who you are. Acceptance that there’s more that connects me with the next person than I’d like to believe. Acceptance that the person I see that makes me feel inadequate is also having somewhat unique challenges of their own making or otherwise.</p><p><strong>Thanks for reading. Give this post a 👏🏿 if you enjoyed it to help others discover it.</strong></p><p><strong>Say hi on </strong><a href="https://twitter.com/@pauldariye"><strong>twitter</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d29e32e2b7c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Case for Progressive Web Applications]]></title>
            <link>https://medium.com/the-andela-way/a-case-for-progressive-web-applications-in-2017-dafb5957e783?source=rss-50a54e22d8f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/dafb5957e783</guid>
            <category><![CDATA[progressive-web-app]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[progressive-enhancement]]></category>
            <category><![CDATA[andela]]></category>
            <dc:creator><![CDATA[Paul Dariye]]></dc:creator>
            <pubDate>Thu, 20 Apr 2017 19:42:11 GMT</pubDate>
            <atom:updated>2018-04-05T19:41:12.309Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>TL;DR — If your company is or is planning on doing business in emerging markets, architecting your web applications for performance through progressive enhancements is one easy way to drastically improve accessibility, retention, and user experience.</blockquote><p><em>Disclaimer: It so happens that not only people in emerging markets suffer from poor networks.</em></p><p>Towards the start of 2016, Progressive Web Applications (PWAs) became a really hot topic all over the interweb, as you can see <a href="https://addyosmani.com/blog/getting-started-with-progressive-web-apps/">here</a>, <a href="https://auth0.com/blog/introduction-to-progressive-apps-part-one/">here</a>, <a href="https://infrequently.org/2015/06/progressive-apps-escaping-tabs-without-losing-our-soul/">here</a>, <a href="https://www.smashingmagazine.com/2016/08/a-beginners-guide-to-progressive-web-apps/">here</a>, or and <a href="https://developers.google.com/web/progressive-web-apps/">here</a>. Even your run of the mill <a href="https://www.google.com/webhp?sourceid=chrome-instant&amp;ion=1&amp;espv=2&amp;ie=UTF-8#q=progressive%20web%20applications">Google search</a> returns a staggering amount of chatter:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W3gBmeveBgsh3gnkVBnJ3g.png" /><figcaption>Google Web Search for ‘progressive web applications’</figcaption></figure><p>In this post I’ll talk about why progressive enhancements are good for you, your customers, and your business especially if you have operations in emerging markets. I’ll then show you three quick wins to help you on the path to adopting progressive enhancements into web applications going forward.</p><h3>PART 1: PWAs ARE GOOD FOR YOU</h3><h4>First things first: What is a PWA?</h4><p>A PWA is built by baking performance early into the development through progressive enhancements. There’s a great summary of it in <a href="https://developers.google.com/web/resources/contributors#petelepage">Pete LePage’s</a> piece ‘<a href="https://developers.google.com/web/fundamentals/getting-started/codelabs/your-first-pwapp/">Your First Progressive Web App</a>:’</p><ul><li><strong>Progressive</strong> because it works for every user on any browser.</li><li><strong>Responsive </strong>because it fits any form factor.</li><li><strong>Connectivity Independent</strong> because it is designed with the worst network in mind.</li><li><strong>App-Like </strong>as a result of the separation of functionality from application content.</li><li><strong>Fresh </strong>due to the service workers updating content in the background.</li><li><strong>Safe </strong>because it is served over HTTPS.</li><li><strong>Discoverable </strong>since search engines are better able to identify it as an application.</li><li><strong>Re-engageable </strong>through features like push notifications.</li><li><strong>Installable</strong> on a user’s home screen for easy access.</li><li><strong>Linkable</strong> through a simple url.</li></ul><p><strong><em>PRCAFSDRIL</em></strong> makes a horrible acronym, but … the point still stands.</p><p>While all of these are great for any application, the first three — progressive, responsive, and connectivity independent — are the most important: they’re what I’d summarize as the ‘accessibility aspects’ of these applications. Accessibility, in this case, basically means that any user on any device on any network can access and interact with a web application with no noticeable difference in experience. For emerging markets, this means that you and your team should be focused on configuring the application for 2G.</p><p>Google has been advocating for PWAs for a few years — in fact, last year, at their <a href="https://developer.chrome.com/devsummit/">2016 Chrome Developer Summit</a>, progressive enhancements was the focus of most discussions. And rightfully so — PWAs are slated to have a huge impact. For example, the adoption of features like Service Workers by browser vendors will drastically improve how applications are consumed on mobile devices around the world. And since PWAs can provide a much richer browsing experience, the end goal seems to be one that inches towards completely blurring the line between a web app and native application experience.</p><blockquote><em>Performance goals should be for the least of your customers.</em></blockquote><blockquote><em>– Someone at Chrome Dev Summit 2016</em></blockquote><h4>Building for the next billion in mind</h4><p>According to <a href="https://www.forbes.com/pictures/eglg45gdjd/emerging-market-growth-beats-us-2/#29cf546c53aa">Forbes</a>, over 70% of world economic growth over the next few years will be from emerging markets. And emerging markets are natively built on mobile. This gives PWAs a great opportunity to be a fundamental driving force of growth.</p><p><strong>Accessibility</strong>, as I pointed out earlier, is one of the core tenets of a PWA. Even with the proliferation of the mobile cellular networks over the last few years (as shown in diagram), accessibility continues to remain an issue especially for internet users, particularly ones in emerging markets who are still remanded to slower networks than the developed world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*ZLgGwRw8Zm3o8evANvKFrQ.png" /><figcaption>Mobile network coverage and evolving technologies. Source: ITU</figcaption></figure><p>The unique accessibility problem PWAs can be configured to solve is a combination of factors including cost (2x the monthly cost of a person in a developed country), device fragmentation (mostly an Android issue), and availability of better network options (i.e 3G, 4G, or LTE).</p><p>The high cost of cellular data forces mobile users to access applications that consume as little data as possible (which is why WhatsApp is so popular in emerging markets) and for much shorter durations. I’ve personally experienced this while browsing Facebook in Nigeria: I ran through over 3GB of data in two days.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/0*v8OWxe5VynPjw4iJ." /><figcaption>Fixed- and mobile-broadband prices, $$$. Source: ITU</figcaption></figure><p>However, the cost of cellular data will continue to drop as the technology matures and as more suppliers compete for market dominance in emerging markets.</p><p>The next big issue is the fragmentation of the mobile device market, which is especially true in Android-dominated emerging markets:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/0*thlEI-ti0P_RsSwv." /><figcaption>Global Smartphone Sales. Source: Gartner</figcaption></figure><p>For Android, fragmentation has been a bittersweet pill. On one hand, consumers have access to thousands of devices, in all shapes and sizes, price tiers, colors, different performance, whatever. On the other, developers and product teams are stuck in a awkward place, unsure of which screen size or performance benchmark to build their applications against.</p><p>Here’s an example of just how big the problem is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/0*Vzk_ohC6fc3al0MF." /><figcaption>Android OS Fragmentation by Device. Source: OpenSignal</figcaption></figure><p><em>**Note: The chart above shows only device fragmentation and doesn’t include OS, screen size, brand, etc. </em><a href="https://opensignal.com/reports/2015/08/android-fragmentation/"><em>Read more</em></a><em>.</em></p><p>Finally, as developing countries become prime investment destinations, infrastructure will continue to be built out to support better networks like LTE and other alternate forms of access to the web services like <a href="https://www.safaricom.co.ke/personal/m-pesa">Safaricom’s</a> MPESA platform and for new comers like <a href="https://www.flutterwave.com/">Flutterwave</a>.</p><p>Even with these existing problems, there’s still an immense opportunity for growth. Three quarters of people have still yet to come online, and the platforms, services and apps they adopt are going to be the ones that are best configured for their network and device realities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/0*k6SAEvxEbCLx92x1." /><figcaption>Global Internet Usage. Source: ITU</figcaption></figure><p><strong>What does all these mean for you, your customers, and your business?</strong></p><p>There’s a chance for you to capture some of that 3.9 billion person market. It’s really a tremendous opportunity, and anything short of that would be a gross understatement.</p><p>Fast growing online retail giants like <a href="http://konga.com/">Konga.com</a> and <a href="http://jumia.co/">Jumia</a> (an <a href="http://www.andela.com/">Andela</a> partner), both operating in Africa, see the opportunity: they’re taking a proactive, optimistic approach by leveraging the current and future capabilities of PWAs to better serve their potential billions. So far, they’ve reaped significant rewards by baking progressive enhancements into their web applications: Konga was able to cut data usage by 92%, allowing users to do more with their current data plans. And Jumia was able to increase conversions significantly by 7.85% (vs 4.5% for native app). That makes a big difference.</p><p>If you’re a CEO/CTO, product owner, or product manager, you’ll only find yourself at considerable ease when you know all of your customers have been served. And as a customer, you’ll have better access to your favorite web applications with a richer browsing experience. It’s a win-win for both parties, especially the enterprising business who can drastically increase conversion, reduce bounce rate, increase their visibility and assure better data security.</p><p><em>Google has some more compelling </em><a href="https://developers.google.com/web/showcase/"><em>case studies</em></a><em> as to why progressive enhancement should be the roadmap of your web application.</em></p><p>At <a href="http://andela.com/what-we-do">Andela</a> we’re constantly mulling over how to best empower the next generation of technology leaders. As we expand through the continent of Africa, finding some of the most talented individuals, we’re always looking for better ways to reach them. Luckily I’m part of the team–Marketing Tech–rebuilding our website to adhere to the accessibility standards progressive web apps are setting and of which I’ve made a case for in this post.</p><p>You can quickly begin progressive enhancements by:</p><ol><li>Adding <a href="https://w3c.github.io/manifest/">W3C compliant Web App Manifest</a> file</li></ol><p>Example manifest.json file in root directory (preferably)</p><pre>{</pre><pre>&quot;name&quot;: &quot;Andela&quot;,</pre><pre>&quot;short_name&quot;: &quot;Andela&quot;,</pre><pre>&quot;description&quot;: &quot;Extend your engineering team with world-class developers&quot;,</pre><pre>&quot;lang&quot;: &quot;en-US&quot;,</pre><pre>&quot;start_url&quot;: &quot;/&quot;,</pre><pre>&quot;display&quot;: &quot;standalone&quot;,</pre><pre>&quot;orientation&quot;: &quot;portrait&quot;,</pre><pre>&quot;theme_color&quot;: &quot;<a href="https://paper.dropbox.com/?q=%233359DF">#3359DF</a>&quot;,</pre><pre>&quot;icons&quot;: [</pre><pre>{</pre><pre>&quot;src&quot;: &quot;static/homescreen-128.png&quot;,</pre><pre>&quot;sizes&quot;: &quot;128x128&quot;,</pre><pre>&quot;type&quot;: &quot;image/png&quot;</pre><pre>},</pre><pre>{</pre><pre>&quot;src&quot;: &quot;static/homescreen-144.png&quot;,</pre><pre>&quot;sizes&quot;: &quot;144x144&quot;,</pre><pre>&quot;type&quot;: &quot;image/png&quot;</pre><pre>},</pre><pre>{</pre><pre>&quot;src&quot;: &quot;static/homescreen-152.png&quot;,</pre><pre>&quot;sizes&quot;: &quot;152x152&quot;,</pre><pre>&quot;type&quot;: &quot;image/png&quot;</pre><pre>},</pre><pre>{</pre><pre>&quot;src&quot;: &quot;static/homescreen-192.png&quot;,</pre><pre>&quot;sizes&quot;: &quot;192x192&quot;,</pre><pre>&quot;type&quot;: &quot;image/png&quot;</pre><pre>},</pre><pre>{</pre><pre>&quot;src&quot;: &quot;static/homescreen-64.png&quot;,</pre><pre>&quot;sizes&quot;: &quot;64x64&quot;,</pre><pre>&quot;type&quot;: &quot;image/png&quot;</pre><pre>}</pre><pre> ],</pre><pre>  &quot;background_color&quot;: &quot;<a href="https://paper.dropbox.com/?q=%233359DF">#3359DF</a>&quot;</pre><pre>}</pre><p>2. Installing a Service Worker</p><p>Example <a href="https://developers.google.com/web/fundamentals/instant-and-offline/service-worker/registration">service worker registration</a> in a sw.js file (you can name this whatever you like)</p><pre>// register service worker</pre><pre>if (&#39;serviceWorker&#39; in navigator) {</pre><pre>  window.addEventListener(&#39;load&#39;, function () {<br>navigator.serviceWorker.register(&#39;/sw.js&#39;).then(function(registration) {</pre><pre>     console.log(&#39;SW Status: Registered Successfully&#39;);</pre><pre>  }).catch(function(error) {</pre><pre>     console.log(`SW Status: Error: ${error}`);  <br>   });</pre><pre>  });</pre><pre>}</pre><p>3. Serving your web application over HTTPS</p><p>Adios for now.</p><p><strong>UPDATE: The first version of this post published last year was titled ‘A Case for Progressive Web Applications in 2017’. It also stated that this was the first post of a three part series. Coupled with the fact that I was unable to get to the other parts of the series as originally intended, the case for Progressive Web Applications need not be relegated to any particular year. They are needed today as they were last year and even more so going forward. I hope to continue writing about progressive enhancements with real world examples and use cases going forward.</strong></p><ul><li><em>**Note: Browser support: Chief among the reason people shy away from progressive enhancement is the </em><a href="https://jakearchibald.github.io/isserviceworkerready/"><em>lack of support by some major browser vendors</em></a><em>, Apple being the elephant in the room.</em></li><li>**<em>Acknowledgement: Huge thanks to my colleagues on the Andela Marketing &amp; Technology teams for reviewing and proofreading this piece.</em></li><li><em>**Crossposting: Share this on my blog as well: </em><a href="https://blog.pauldariye.com/a-case-for-progressive-web-applications-in-2017/"><em>blog.pauldariye.com</em></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dafb5957e783" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-andela-way/a-case-for-progressive-web-applications-in-2017-dafb5957e783">A Case for Progressive Web Applications</a> was originally published in <a href="https://medium.com/the-andela-way">The Andela Way</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>