<?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 Chidozie Duru on Medium]]></title>
        <description><![CDATA[Stories by Chidozie Duru on Medium]]></description>
        <link>https://medium.com/@chidozieduru?source=rss-e29c1aa17e9f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YIzqVyuPPK0eIX5he3SWlg.jpeg</url>
            <title>Stories by Chidozie Duru on Medium</title>
            <link>https://medium.com/@chidozieduru?source=rss-e29c1aa17e9f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 19:58:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chidozieduru/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[API Documentation -The Right Way(With ApiDocJs)]]></title>
            <link>https://medium.com/@chidozieduru/api-documentation-the-right-way-e7d011dc52c5?source=rss-e29c1aa17e9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7d011dc52c5</guid>
            <category><![CDATA[apidoc]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[api-documentation]]></category>
            <dc:creator><![CDATA[Chidozie Duru]]></dc:creator>
            <pubDate>Sun, 10 Oct 2021 13:36:34 GMT</pubDate>
            <atom:updated>2021-10-10T13:44:56.504Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O_7H0mODbVCYFSP3gvlh6Q.png" /></figure><p>Previously,i always wondered if there was a service out there that i could use to document my APIs just like <a href="https://developer.flutterwave.com/reference">flutterwave</a>,i found a couple of them including <a href="https://swagger.io/solutions/api-documentation/">swagger</a> but <a href="https://apidocjs.com/">Apidocjs</a> became my favorite for a couple of reasons:</p><ul><li>Templating</li><li>Multi-platform Support (can be used in C#, Go, Dart, Java, JavaScript, PHP, TypeScript and all other Javadoc capable languages)</li><li>Easy Learning Curve</li><li>Versioning</li></ul><p># Prerequisites<br>1. <a href="https://www.nodjs.org/en/download/">NodeJs</a><br>2. The ApiDocJs package</p><p>You can easily install NodeJs in your operating system by following the resource on their <a href="https://www.nodjs.org/en/download/">website</a>.</p><p>After this you need the apidoc as a global package in your machine. So go ahead, open a terminal and run</p><p>`npm install apidoc -g`</p><p>Next run `apidoc -i src -o apidoc`</p><p>This will create an apiDoc of all files within **src** directory, using the default template and put all output to **apidoc** directory.</p><p>Without any parameter, apiDoc generates a documentation from all .cs .dart .erl .go .java .js .php .py .rb .ts files in current directory (including subdirectories) and writes the output to ./doc/.</p><p><a href="https://files.speakerdeck.com/presentations/4421c3b0b25a0130468d22b783d114b9/apiDoc.pdf">Here</a> is an extra resource that helped me understand this documentation paradigm.</p><p>This was an introductory article to lead you to the right information. Hence,resources are contained in it to explain further and below is a tutorial video from <a href="https://www.youtube.com/user/hBlevs/featured">hBlev</a></p><p><a href="https://www.youtube.com/watch?v=yWH3vt78sOE&amp;t=804s">https://www.youtube.com/watch?v=yWH3vt78sOE&amp;t=804s</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7d011dc52c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Obfuscate Your PHP Source Code]]></title>
            <link>https://medium.com/@chidozieduru/obfuscate-your-php-source-code-da8fa6e5f3f9?source=rss-e29c1aa17e9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/da8fa6e5f3f9</guid>
            <category><![CDATA[hide]]></category>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[source-code]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[obfuscation]]></category>
            <dc:creator><![CDATA[Chidozie Duru]]></dc:creator>
            <pubDate>Sun, 10 Oct 2021 11:59:51 GMT</pubDate>
            <atom:updated>2021-11-12T08:33:52.974Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*mxnPw7giGXeI3TI-10opMw.jpeg" /></figure><p>In software development, <strong>obfuscation</strong> is the deliberate act of creating <strong>code</strong> that is difficult for humans to understand.</p><p>Very often we see the need to encrypt our php source code for different reasons. Whatever the case may be,we often do not want to pay for services like ioncube etc, perhaps because we are testing the waters and even maybe,the client isn’t offering financial support for that. So i came up with this one way obfuscator, and it still works when parsed.Below is the class :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3508513f2207f11a2ec33272aea82cbc/href">https://medium.com/media/3508513f2207f11a2ec33272aea82cbc/href</a></iframe><p>In order to use this class,you simply import and then provide the file to be obfuscated and the new file to write the obfuscated code into.Note,the old file will be preserved. The new file will contain the obfuscated source code.</p><pre>require_once(&quot;./Obfuscator.php&quot;);<br>use Obfuscator/Obfuscator as Obfuscator;<br>(new Obfuscator(&quot;oldfile.php&quot;,&quot;newfile.php&quot;))::obfuscate();</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da8fa6e5f3f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Grow Beyond Console.log()]]></title>
            <link>https://medium.com/learnfactory-nigeria/grow-beyond-console-log-76433c4e4c70?source=rss-e29c1aa17e9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/76433c4e4c70</guid>
            <category><![CDATA[console]]></category>
            <category><![CDATA[syntax]]></category>
            <category><![CDATA[logging]]></category>
            <category><![CDATA[methods]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Chidozie Duru]]></dc:creator>
            <pubDate>Sun, 11 Oct 2020 21:15:43 GMT</pubDate>
            <atom:updated>2020-10-11T21:52:38.820Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*66XvTpK5ULsgEW7ydEUsOg.png" /></figure><p>Interestingly, a number of developers do not maximize the juice in the JavaScript console object. There are quite a couple of methods in the console object that could help one debug code effectively and we will take a deep dive and talk about them right away.</p><blockquote>1. console.log()</blockquote><blockquote>2. console.error()</blockquote><blockquote>3. console.warn()</blockquote><blockquote>4. console.clear()</blockquote><blockquote>5. console.table</blockquote><blockquote>6. console.time() and console.timeEnd()</blockquote><blockquote>7. console.group() and console.groupEnd()</blockquote><blockquote>8. console.count()</blockquote><blockquote>9. console.assert()</blockquote><blockquote>10. console.trace()</blockquote><h3>So here we go:</h3><ol><li><strong>Console.log() -</strong>this is used to log messages to the console. Anything could be displayed in the console and this includes arrays, strings, integers, objects, boolean e.t.c.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*y4GETRZ_UjLiSvENQvRqpg.png" /></figure><p><strong>2. Console.error()</strong>-this is used to log error messages to the console. These error messages appear in red color on the console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*-5A192AWhfAtQohChbzU_A.png" /></figure><p><strong>3. Console.warn()</strong>-this is used to log warning messages to the console. These warning messages appear in yellow color on the console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*64sfI8ivW5M_3e2Eb5TxGg.png" /></figure><p><strong>4. Console.clear()</strong>-this will usually clear the console and leave a message “console was cleared” in Chrome browser while Mozilla Firefox browser will only clear the console.</p><p><strong>5. Console.table()</strong>-this happens to be a very interesting method of the console object. It prints a table in the console from object argument passed into it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*QSY91uwq_e-UwrepVAzb6w.png" /></figure><p><strong>6. Console.time() and Console.timeEnd()</strong>-this method can be used to calculate the amount of time spent on parsing a block of code or function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*tSpednLSVd-wGm7zuyHcfA.png" /></figure><p><strong>7. Console.group() and Console.groupEnd()</strong>-these methods together can be used to group our messages in the console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*9r6grTDQcmuKj-_sRjzESg.png" /></figure><p><strong>8. Console.count()</strong>-this method is used to count the number that the function hit by this counting method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*hMuaizGwgdH1jpORIKRKVQ.png" /></figure><p><strong>9. Console.assert()</strong>-this method takes two arguments. The first argument is the condition while the second is an output to be logged to the console. The output will be logged if the condition is not satisfied.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*jZ8wFtmynUXnSPLrZB9lfg.png" /></figure><p><strong>9. Console.trace()</strong>-this method will log a stack trace that shows how the code ended up at a certain point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*n6S3_AGu2sAgnAtIF1lv-w.png" /></figure><p>Now with these new superpowers, there is so much more we can do. Go for it where necessary.</p><p>👏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76433c4e4c70" width="1" height="1" alt=""><hr><p><a href="https://medium.com/learnfactory-nigeria/grow-beyond-console-log-76433c4e4c70">Grow Beyond Console.log()</a> was originally published in <a href="https://medium.com/learnfactory-nigeria">LearnFactory Nigeria</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Payment Verification With Node.Js, Express, Axios and Paystack API.]]></title>
            <link>https://medium.com/learnfactory-nigeria/payment-verification-with-node-js-express-axios-and-paystack-api-a41bdec508f1?source=rss-e29c1aa17e9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a41bdec508f1</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[axios]]></category>
            <category><![CDATA[paystack]]></category>
            <category><![CDATA[verification]]></category>
            <category><![CDATA[expressjs]]></category>
            <dc:creator><![CDATA[Chidozie Duru]]></dc:creator>
            <pubDate>Sun, 04 Oct 2020 01:58:26 GMT</pubDate>
            <atom:updated>2020-10-05T13:18:34.866Z</atom:updated>
            <content:encoded><![CDATA[<h3>Payment Verification With Node.Js,Express, Axios and Paystack API.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C0m35MxRhaQWgnPaGbc1cg.png" /></figure><p>Payment integration and verification still pose a threat to most developers even today. The good news is, you can do it if you try again today. In this article, I would show you how easy verification with <a href="http://www.paystack.com/">Paystack</a> and the aforementioned technologies really is.</p><p><strong>Requirements</strong>:</p><ol><li>You need to have an account with <a href="http://paystack.com/">Paystack</a>, do not fear as it is totally free.</li><li>You should have Axios installed —it is a promise-based HTTP client for the browser and NodeJs. In simple terms, Axios will help us access the Paystack API.</li></ol><p>Once you have signed up on paystack, go ahead and grab your public key and private key. This will serve as our authorization paradigm.</p><ul><li>Login to your paystack account.</li><li>Go to the settings section,</li><li>Click on the API keys and Webhooks tab</li><li>Copy your test secret key as shown on the input box.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0i1Io-rO18uEUVO-ZvQ3NA.png" /></figure><p>So now if we have a dedicated route for payment verification, it should accept a reference ID from a previous paystack payment.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b0c89a9ac855efb02ebe85f509d11abe/href">https://medium.com/media/b0c89a9ac855efb02ebe85f509d11abe/href</a></iframe><p>And that’s it…..I’d love to get feedback from you. You can always reach out to me if it still proves difficult.</p><p>👏Congrats….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a41bdec508f1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/learnfactory-nigeria/payment-verification-with-node-js-express-axios-and-paystack-api-a41bdec508f1">Payment Verification With Node.Js, Express, Axios and Paystack API.</a> was originally published in <a href="https://medium.com/learnfactory-nigeria">LearnFactory Nigeria</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A comprehensive guide on how to upload image to cloudinary using graphql.]]></title>
            <link>https://medium.com/learnfactory-nigeria/a-comprehensive-guide-on-how-to-upload-image-to-cloudinary-using-graphql-c375b80871c5?source=rss-e29c1aa17e9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c375b80871c5</guid>
            <category><![CDATA[express]]></category>
            <category><![CDATA[node]]></category>
            <category><![CDATA[cloudinary]]></category>
            <category><![CDATA[apollo-server-express]]></category>
            <category><![CDATA[graphql]]></category>
            <dc:creator><![CDATA[Chidozie Duru]]></dc:creator>
            <pubDate>Wed, 23 Sep 2020 23:55:13 GMT</pubDate>
            <atom:updated>2020-10-05T11:11:14.655Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*yL5E5iOw7a7exfvENHLQ2g.jpeg" /><figcaption>GraphQL Image Upload To Cloudinary</figcaption></figure><p><strong>A comprehensive guide on how to upload images to Cloudinary using GraphQL.</strong><br><em>As you know, I love to explain things in such a way newbies can understand also. So please pardon me if you feel like this is way below your level.</em></p><p><strong>Prerequisites</strong></p><p>1. <a href="https://nodejs.org/en/download/"><strong>NodeJs</strong></a> must be installed on your machine.<br>2. You must have signed up with <a href="https://cloudinary.com/"><strong>Cloudinary</strong></a>.</p><p><strong>Project Structure</strong></p><pre>project<br>| node_modules/<br>│ .env <br>│ app.js<br>| package.json<br>| yarn-error.log<br>| yarn.lock </pre><p><strong>Let’s Begin</strong><br>&gt; let’s initialize our server with yarn</p><pre>yarn init</pre><p><em>The above code sets up our server with ready packages. Next, we need to install the necessary node modules for our server.</em></p><p>Let’s install the necessary node modules:</p><ul><li><strong>express</strong> — Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.</li><li><strong>nodemon</strong> — Nodemon is a tool that monitors our app for changes and restarts our server.</li><li><strong>apollo-server-express</strong> — This is the Express and Connect integration of GraphQL Server.</li><li><strong>dotenv</strong> — This loads environment variables from a .env file into process.env.</li><li><strong>cloudinary</strong> — This would serve as our cloud storage service for easily uploading images.</li></ul><pre>yarn add express, apollo-server-express, dotenv, nodemon and cloudinary</pre><p>By now your project structure should look like this:</p><pre>project<br>| node_modules/<br>| package.json<br>| yarn-error.log<br>| yarn.lock </pre><p>We need to create two new files <strong>.env</strong> and <strong>app.js</strong>. Immediately after creating these files, your project structure should look like the first project structure in this article.</p><p>Now, we are going to write our environment variables to our .env file</p><pre>PORT = 4000<br>CLOUDINARY_API_KEY=your_cloudinary_api_key<br>CLOUDINARY_API_SECRET=your_cloudinary_api_secret<br>CLOUDINARY_NAME=your_cloudinary_name</pre><p>If you do not have a Cloudinary account, you will need to create one in two easy steps and get your Cloudinary credentials:<br>- Sign up<br>- Account Verification</p><p>Next we are going to write into our `app.js` file which we previously created.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6ddd84b6be90d4f5c44772927f1e6cd5/href">https://medium.com/media/6ddd84b6be90d4f5c44772927f1e6cd5/href</a></iframe><p><strong>let’s start our app</strong></p><pre><br>yarn run <br>nodemon app.js<br></pre><p>&gt; let’s test our mutation on GraphQL playground<br>Access `<a href="http://localhost:4000/playground%60">http://localhost:4000/playground`</a> from your browser and type :</p><pre>mutation {<br> uploadPhoto(photo:”image_location.jpg”)<br>}</pre><p>where “<em>image_location.jpg</em>” is a valid image location whether remote or local</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GWnB4GfW1BnUYeS4dJYUGg.png" /><figcaption>playground uploadPhoto mutation</figcaption></figure><p>If you have followed every step carefully, your image should be uploaded to Cloudinary.</p><p>♨️ Congrats 👏<br><a href="https://github.com/dozykeys/graphql-cloudinary-image-upload.git"><strong>Here</strong></a> is a link to the full project on my GitHub repository.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c375b80871c5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/learnfactory-nigeria/a-comprehensive-guide-on-how-to-upload-image-to-cloudinary-using-graphql-c375b80871c5">A comprehensive guide on how to upload image to cloudinary using graphql.</a> was originally published in <a href="https://medium.com/learnfactory-nigeria">LearnFactory Nigeria</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>