<?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 Adeniyi Tolulope on Medium]]></title>
        <description><![CDATA[Stories by Adeniyi Tolulope on Medium]]></description>
        <link>https://medium.com/@tolutronics?source=rss-b784693e6f19------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Igc2ZesceM4q_EvbfFwjzQ.jpeg</url>
            <title>Stories by Adeniyi Tolulope on Medium</title>
            <link>https://medium.com/@tolutronics?source=rss-b784693e6f19------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 04:38:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tolutronics/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[Angular Hydration: What it is and why it matters (Explained with a football twist)]]></title>
            <link>https://tolutronics.medium.com/angular-hydration-what-it-is-and-why-it-matters-explained-with-a-football-twist-0ea7df856116?source=rss-b784693e6f19------2</link>
            <guid isPermaLink="false">https://medium.com/p/0ea7df856116</guid>
            <dc:creator><![CDATA[Adeniyi Tolulope]]></dc:creator>
            <pubDate>Sat, 19 Oct 2024 07:01:41 GMT</pubDate>
            <atom:updated>2024-10-19T07:01:41.256Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s talk about something called <strong>Angular Hydration</strong> — don’t worry, it’s not as complicated as it sounds. To explain it in a way that makes sense, let’s use a simple scenario that many can relate to: <strong>football</strong>!</p><h3>The Football Match Analogy</h3><p>Imagine you’re sitting down to watch a football match on TV. As the broadcast begins, before the match kicks off, you usually see the players on the pitch, the stadium, and maybe even the fans cheering. All of that shows up immediately, but the game hasn’t actually started yet. That’s like the first part of Angular Hydration.</p><h3>What Exactly is Angular Hydration?</h3><p>In basic terms, Angular hydration is a technique used to make web pages load faster and become interactive sooner. It’s a combination of two things:</p><ol><li><strong>Server-Side Rendering (SSR)</strong>: This is when the server prepares the page (like the TV showing you the stadium and players), and sends it to your browser. It’s a fully-loaded page, but it’s not interactive yet. You can <em>see</em> everything, but you can’t do anything with it just yet.</li><li><strong>Hydration</strong>: Once the page is in your browser, Angular steps in and adds the functionality — just like when the referee blows the whistle and the match officially begins. Now, you can interact with the website, click buttons, fill out forms, and navigate through it.</li></ol><h3>Why Should You Care?</h3><p>Think of this like if you’re watching a football match online with a slow connection (which happens in many places), you wouldn’t want the stream to load piece by piece, starting with just the grass, then the players, then the ball. That would be annoying, right? You want the whole thing to show up fast. That’s where SSR helps — it gives you a complete picture first, and then hydration comes in to make everything interactive.</p><p>In websites, hydration helps you see the content right away without having to wait for all the interactive parts to load. It means less waiting, less staring at blank pages, and more getting to the good stuff.</p><h3>How Does Angular Hydration Help?</h3><p>By using hydration, websites built with Angular can make sure that users (even on slow connections) get a page that looks fully loaded quickly. Then, Angular “hydrates” the page, making it interactive as fast as possible. It’s like switching from just watching the players standing on the field to the actual action of the match.</p><h3>Putting It All Together</h3><p>To make Angular Hydration work, <strong>Server-Side Rendering (SSR) </strong>needs to be enabled, which prepares that first quick-load page. Then, Angular does the hydration part — making everything interactive.</p><p>At the end of the day, Angular hydration is like making sure your website performs as smoothly as a football match broadcast, giving users the full picture first and then making sure they can interact with everything as soon as possible. It’s about speed, efficiency, and making sure no one is stuck waiting for pages to load.</p><p>So, whether you’re building apps for people streaming football highlights or doing online shopping , Angular Hydration can help your users get the best experience, no matter their internet connection speed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0ea7df856116" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to deploy Nestjs app to Vercel]]></title>
            <link>https://tolutronics.medium.com/how-to-deploy-nestjs-app-to-vercel-b3cdd77f2d0f?source=rss-b784693e6f19------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3cdd77f2d0f</guid>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[nestjs]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[configuration]]></category>
            <category><![CDATA[vercel]]></category>
            <dc:creator><![CDATA[Adeniyi Tolulope]]></dc:creator>
            <pubDate>Thu, 27 Oct 2022 15:05:47 GMT</pubDate>
            <atom:updated>2022-10-27T15:05:47.169Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VW3h50PpnzaKNFTEVBOMPA.png" /></figure><h3><strong>Intoduction</strong></h3><p>With the recent development by <a href="https://help.heroku.com/RSBRUH58/removal-of-heroku-free-product-plans-faq"><strong><em>Heroku</em></strong></a>, many developers are having difficulties to get a free platform to host their backend. In this tutorial, i am going to share how you can leverage on vercel ( Vercel is the platform for frontend developers) to host your Nestjs applications for free.</p><blockquote>Before we proceed, let’s discuss what is <strong>NestJs</strong> and <strong>Vercel</strong>.</blockquote><h3>What is Nestjs</h3><p>Nestjs is a progressive Nodejs framework for building efficient, reliable and scalable server-side applications. Nestjs is a fully typed framework ( i.e it uses typescript) which is built ontop of Expressjs. It is heavily reliant on the Angular architecture with a structured environment hence its scalability. Read more <a href="https://nestjs.com/"><strong><em>here</em></strong></a><strong><em>.</em></strong></p><h3>What is Vercel</h3><p>Vercel (formerly known as <strong>Zeit </strong>) is a platform primarily for frontend developers. It gives innovators the speed and dependability needed to innovate at the moment of inspiration. Read more <a href="https://vercel.com/"><strong><em>here</em></strong></a><strong><em>.</em></strong></p><blockquote>Now, let’s get started…</blockquote><h3>Deployment</h3><p>If you have deployed nextjs and react on vercel, you will find it simple to deploy nestjs to vercel but this time with different configurations.</p><p>Nestjs deployment on vercel using the default configurations will fail with this error in the build console:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nW_-ZTpATT3yDvmB6WY5XQ.png" /></figure><p>This error occured because by default, vercel looks for “<strong><em>public folder</em></strong>” after build which nestjs does not have . Instead nestjs builds into a folder called “<strong><em>dist</em></strong>”.</p><p>To fix this, we will change the <strong>build and output settings</strong> under the <strong>project configuration, a</strong>ccess the <strong>output folder settings</strong> and change “<strong>public</strong>” to “<strong>dist</strong>”. Now try to proceed with the build. This time, the build and deployment will be successful but then faced with another error when you try to access the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KrDUY_4AyYJpflzdsgPiAw.png" /></figure><p>This occurred because vercel deployed our app as a frontend app, so when you access the app, it looks for the index file (index.html) but could not find it because the app is a sever side app hence the 404 error.</p><p>To fix this, we will need to tell vercel that the app is a nodejs app by creating a file on the root of our project and name it “<strong>vercel.json</strong>” . The newly created file will contain the following configurations.</p><pre>{</pre><pre>  &quot;version&quot;: 2,</pre><pre>  &quot;builds&quot;: [</pre><pre>         {</pre><pre>           &quot;src&quot;: &quot;src/main.ts&quot;,</pre><pre>           &quot;use&quot;: &quot;@vercel/node&quot;</pre><pre>          }</pre><pre>      ],</pre><pre> &quot;routes&quot;: [</pre><pre>      {</pre><pre>         &quot;src&quot;: &quot;/(.*)&quot;,</pre><pre>         &quot;dest&quot;: &quot;src/main.ts&quot;,</pre><pre>         &quot;methods&quot;: [</pre><pre>                      &quot;GET&quot;,</pre><pre>                      &quot;POST&quot;,</pre><pre>                      &quot;PUT&quot;,</pre><pre>                      &quot;PATCH&quot;,</pre><pre>                      &quot;DELETE&quot;</pre><pre>                ]</pre><pre>         }</pre><pre>    ]</pre><pre>}</pre><pre>for more customizations, visit <a href="https://vercel.com/docs/project-configuration"><strong><em>here</em></strong></a></pre><blockquote><strong>Version</strong> : refers to the platform version the deployment will use. <strong>must be ≥ 2</strong></blockquote><blockquote><strong>builds -&gt; src :</strong> A glob expression or pathname. If more than one file is resolved, one build will be created per matched file. It can include * and **.</blockquote><blockquote><strong>builds -&gt; use :</strong> Specifies npm module to be installed by the build process.</blockquote><blockquote><strong>routes -&gt; src :</strong> A regular expression that matches each incoming pathname (excluding querystring).</blockquote><blockquote><strong>routes -&gt; dest:</strong> A destination pathname or full URL, including querystring.</blockquote><blockquote><strong>routes -&gt; methods:</strong> A set of HTTP method types. If no method is provided, requests with any HTTP method will be taken as a route.</blockquote><p>Now make a new commit to your git with the new file you just created and build the app again.</p><p>This time, the build and deployment is successful and your nestjs app is live.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zmYu2zg_LuDRxE55qVCX_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6l8Uo8aIWDxByPUWz-Kivw.png" /><figcaption><strong><em>Get users endpoint</em></strong></figcaption></figure><p>Thank you for reading through.</p><p>you can get the nestjs app code <a href="https://github.com/tolutronics/nest-vercel-demo"><strong><em>here</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3cdd77f2d0f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementing Code Push in Capacitor(3.x) Applications.]]></title>
            <link>https://tolutronics.medium.com/implementing-code-push-in-capacitor-3-x-applications-22bd6a204a04?source=rss-b784693e6f19------2</link>
            <guid isPermaLink="false">https://medium.com/p/22bd6a204a04</guid>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[code-push]]></category>
            <category><![CDATA[capacitorjs]]></category>
            <category><![CDATA[ionic]]></category>
            <dc:creator><![CDATA[Adeniyi Tolulope]]></dc:creator>
            <pubDate>Thu, 16 Sep 2021 08:16:00 GMT</pubDate>
            <atom:updated>2022-02-26T05:41:19.813Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vVgCiaeIOyaO6wMHS_1jQg.jpeg" /><figcaption>Image from Unsplash.com</figcaption></figure><p>Have you ever been faced with the need to get a fix/update to your users as soon as possible but you have to wait for playstore and appstore to review your apps before it gets to the users? Then this article is a quick win to overcome the barrier.</p><p>Before we jump to the technical aspect of this article, I will want to lay a little background of what CODEPUSH is and what CAPACITOR is.</p><h3>What is Codepush</h3><p>Codepush is an infrastructure that allows for instant and automatic update of your Capacitor, Apache Cordova and React Native applications without going through the appstore or playstore. It is owned by Microsoft under App Center Clound services. Read more from <a href="https://docs.microsoft.com/en-us/appcenter/distribution/codepush/"><strong><em>here</em></strong></a><strong><em>…</em></strong></p><h3>What is Capacitor</h3><p>Capacitor is an open source native runtime that bundles your web assets(HTML, CSS and Javascript) into native apps that runs on multiple platforms (iOS, Android, Desktop, PWA). It is owned by the ionic team. You can read more from <a href="https://capacitorjs.com/"><strong><em>here</em></strong></a><strong><em>…</em></strong></p><h3>How Code push works</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AcJ1CcPGZabqzKe_KSb7yQ.png" /></figure><p>After you have made changes to your code(probably fixed a bug), and have compiled your code, then it is ready to be served to your users by uploading the web asset to the codepush server and it wil be delivered to you app users. The good thing is that you can also rollback an update in cases where you push update that breaks the app.</p><h3>Getting Started</h3><p>The first step in getting codepush to work is to setup an account on the app center website <a href="https://appcenter.ms/create-account"><strong><em>here</em></strong></a><strong><em>. </em></strong>The registration takes less than a minute, after which you will be required to add new app. In this process, you will be asked choose an OS and a platform. In the ecample below, we created a new app for ios and since we are using capacitor, we choose the cordova platform.</p><p>Update: <strong><em>Appcenter no longer support cordova so you will not see cordova in the option any longer. But not to worry, you can choose react-native as the platform, it will still work perfectly.</em></strong></p><p>NOTE: <em>You will have to create a different app for each OS</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WVUdsGxIovDj2cPaByTl-Q.png" /></figure><p>NOTE: you can also work with appcenter from your terminal by installing the appcenter cli … Read more on setting up appcenter cli <a href="https://docs.microsoft.com/en-us/appcenter/cli/"><strong><em>here</em></strong></a></p><pre>npm install -g appcenter-cli</pre><p>Then authenticate your terminal to use appcenter</p><pre>appcenter login</pre><p>After creating an account and adding an app, we can now start setting up our capacitor app. First, we will install the codepush plugin and other neccessary plugins. The github repo to the plugin is <a href="https://github.com/mapiacompany/capacitor-codepush"><strong><em>here</em></strong></a>…</p><pre><strong>npm i @capacitor-community/http@next <br>npm i @capacitor/device <br>npm i @capacitor/dialog <br>npm i @capacitor/filesystem<br>npm i https://github.com/mapiacompany/capacitor-codepush<br>npx cap sync</strong></pre><p>After installing the codepush plugin, we can now setup the app to connect to codepush server and listen for updates. To do this, we will first include the codepush api and development keys in our <strong><em>capacitor.config.json</em></strong> or <strong><em>capacitor.config.ts</em></strong> file. For a bit of security we can optionally add code signing to the config file.</p><p>To generate a signing key (optional), run the following command in your project folder.</p><pre><em>//generate private RSA key and save it in a file</em><br><strong>openssl genrsa -out privateKey.pem</strong><br><br><em>//export public key from privateKey.pem into publicKey.pem</em><br><strong>openssl rsa -pubout -in privateKey.pem -out publicKey.pem</strong></pre><p>Now we can setup the capacitor.config.json file by adding the following to the file:</p><pre><strong>&quot;plugins&quot;: {</strong><br>    <em>//some other plugins</em><br>    <strong>&quot;CodePush&quot;: {</strong><br>      <em>//can be found in your appcenter Demo-ios app dashboard</em><br>      <strong>&quot;IOS_DEPLOY_KEY&quot;: &quot;YOUR_IOS_DEPLOYMENT_KEY&quot;,</strong> <br>      <em>//the content of your publicKey.pem</em><br>      <strong>&quot;IOS_PUBLIC_KEY&quot;: &quot;YOUR_GENERATED_SECRET_KEY&quot;,</strong><em>//(optional)</em><br>      <em>//can be found in your appcenter Demo-android app dashboard</em><br>      <strong>&quot;ANDROID_DEPLOY_KEY&quot;: &quot;YOUR_ANDROID_DEPLOYMENT_KEY&quot;,</strong><br>      <em>//the content of your publicKey.pem</em><br>      <strong>&quot;ANDROID_PUBLIC_KEY&quot;: &quot;YOUR_GENERATED_SECRET_KEY&quot;,</strong><em>//(optional)</em><br>      <strong>&quot;SERVER_URL&quot;: &quot;</strong><a href="https://codepush.appcenter.ms/"><strong>https://codepush.appcenter.ms/</strong></a><strong>&quot;</strong><br>    }<br>}</pre><p>NOTE: you can also get your deployment keys from the terminal by running the following command in your terminal</p><pre><strong>appcenter codepush deployment list --app &lt;ownerName&gt;/&lt;yourAppName&gt; --displayKeys</strong></pre><p>In order to ensure security(<strong>avoid data injection attacks</strong>) while connecting to the codepush server, you need to configure your web server to run the Content-Security-Policy(CSP) HTTP header by adding the codepush server url to the CSP meta tag in your index.html file. <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP"><strong><em>Read more</em></strong></a><strong><em>…</em></strong></p><pre><strong>&lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;default-src </strong><a href="https://codepush.appcenter.ms/"><strong>https://codepush.appcenter.ms</strong></a><strong> &#39;self&#39; data: gap: </strong><a href="https://ssl.gstatic.com/"><strong>https://ssl.gstatic.com</strong></a><strong> &#39;unsafe-eval&#39;; style-src &#39;self&#39; &#39;unsafe-inline&#39;; media-src *&quot;/&gt;</strong></pre><p>After setting up the plugin in our app, we need to tell our app what to do when there is an update from codepush. We can let the codepush plugin handles everything (checking, downloading and installing updates) by simply doing the following in your app’s device ready state:</p><pre><strong>import { codePush, InstallMode } from &#39;capacitor-codepush&#39;;<br>import { App } from &#39;@capacitor/app&#39;;</strong></pre><pre><strong>App.addListener(&#39;appStateChange&#39;, ({ <em>isActive</em> }) =&gt; {</strong></pre><pre><strong>if (<em>isActive</em>) {</strong></pre><pre><strong>    codePush.sync();<br>}else{}<br>});</strong></pre><p>NOTE:- From my experience, this process has a known error of not calling the notifyApplicationReady() function sometimes which leads to rollover of updates.</p><p>NOTE: It’s advisable not to use alert popup in ios because ios does not allow it.</p><p>You may also use this version where you handle every stage of the update yourself. (<strong><em>I strongly recommend this version of handling the process yourself</em></strong>). You can read the plugin doc <a href="https://github.com/mapiacompany/capacitor-codepush"><strong><em>here</em></strong></a> for more extensive usage.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0aac1067615badfdece486b94fc5b757/href">https://medium.com/media/0aac1067615badfdece486b94fc5b757/href</a></iframe><h3>Pushing the update to codepush server</h3><p>It’s time to push the code to the codepush server but before that, we need to compile the app. you can read more from <a href="https://docs.microsoft.com/en-us/appcenter/distribution/codepush/cli"><strong><em>here</em></strong></a> to know more about the parameters.</p><pre>//for IOS<br>appcenter codepush release -a &lt;ownerName&gt;/&lt;yourAppName&gt; -c ios/App/App/public -t &#39;1.0&#39; -d &lt;deploymentName&gt; -m --description &quot;new update&quot; -k privateKey.pem</pre><pre>//for Android<br>appcenter codepush release -a &lt;ownerName&gt;/&lt;yourAppName&gt; -c android/app/src/main/assets/public -t &#39;1.0&#39; -d &lt;deploymentName&gt; -m --description &quot;new update&quot; -k privateKey.pem</pre><p><em>For ionic app, before pushing the update, run </em><em>ionic cap build</em></p><p>With this in place , your app will be able to recieve update anytime without delay.</p><p>You can contact me on <a href="http://toluxy100@gmail.com/"><strong><em>email</em></strong></a> or <a href="https://twitter.com/tolutronics"><strong><em>twitter</em></strong></a> if you have any question.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22bd6a204a04" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Naming Ceremony of a 3 Years Pregnancy.]]></title>
            <link>https://tolutronics.medium.com/the-naming-ceremony-of-a-3-years-pregnancy-ae10a40a4ffe?source=rss-b784693e6f19------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae10a40a4ffe</guid>
            <category><![CDATA[starting-to-write]]></category>
            <category><![CDATA[fear-of-starting]]></category>
            <category><![CDATA[procastination]]></category>
            <dc:creator><![CDATA[Adeniyi Tolulope]]></dc:creator>
            <pubDate>Tue, 27 Jul 2021 11:19:28 GMT</pubDate>
            <atom:updated>2021-07-27T11:19:28.615Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oyLH1VJ5LWpDyey1jxBjPw.jpeg" /></figure><p>How does it sounds and how do you feel when you hear that a woman is pregnant for 3 years ? Yes i mean 3 good years. Well, which ever way it might sound or you might feel, I am actually the woman I am refering to.</p><p>For 3 good (or will i say bad ) years, I have conceived in me the urge to start writing articles and sharing some of my programming contents, but little did I know that there is a force holding me back, hindering me from reaching the stage of delivering the pregnancy.</p><p>After several diagnosis from different doctors and from my own personal research, one thing surfaces to be the cause of the prolong pregnancy period which is : THE FEAR OF STARTING. The fear of actually going into the labour room to give birth to my long-conceived pregnancy.</p><p>You will want to ask me wether I am still carrying the pregnacy or i have safely delivered it. Well, i am glad to say that you are actually reading the outcome of the pregnancy (The First child).</p><p>So, how did I come out of this fear that gave birth to this bouncing baby boy, well the simple trick is that on 26th of July 2021 I actually worked into an hospital , Medium to be precised and I started the journey of bringing this beautiful baby into life. HURRAY.</p><p>This is actually the case for so many programmers, we think of so many factors which invariably builds up the fear to start. Factors like:</p><ol><li>Someone had already done this, so no need to do it. NO, its not the case of you replicating something but to do it in a more interesting and unique way. Your footprint is needed.</li><li>If I push out this tutorial people will know i am not good enough. NO, this still goes down to uniqueness, someone out there needs your own way of explaining things.</li></ol><p>So the conclusion of the matter is, for you to come out of that long-pregnancy period, you have to get STARTED WITHOUT BEEN AFRAID OF ANY FACTOR WHATSOEVER.</p><p>Thanks for attending this naming ceremony.</p><p>Photo by <a href="https://unsplash.com/@gabrielrana?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Gabriel Tovar</a> on <a href="https://unsplash.com/s/photos/newborn?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae10a40a4ffe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>