<?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 Temiloluwa Abiodun-Ojo on Medium]]></title>
        <description><![CDATA[Stories by Temiloluwa Abiodun-Ojo on Medium]]></description>
        <link>https://medium.com/@temiloluwaabiodunojo?source=rss-7c146ab488b3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Qrlu7kGKxUOpFyMKmpNePA.jpeg</url>
            <title>Stories by Temiloluwa Abiodun-Ojo on Medium</title>
            <link>https://medium.com/@temiloluwaabiodunojo?source=rss-7c146ab488b3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 12:46:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@temiloluwaabiodunojo/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[A beginner’s attempt to explain how to build a simple Rest API with Nodejs and Express.]]></title>
            <link>https://medium.com/devcareers/a-beginners-attempt-to-explain-how-to-build-a-simple-rest-api-with-nodejs-and-express-d6153de2bb7a?source=rss-7c146ab488b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6153de2bb7a</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[expressjs]]></category>
            <dc:creator><![CDATA[Temiloluwa Abiodun-Ojo]]></dc:creator>
            <pubDate>Thu, 12 Sep 2019 14:15:31 GMT</pubDate>
            <atom:updated>2019-09-12T14:59:02.214Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*3mQ5OsAp667-pg6bF_8jPA.png" /></figure><p>API means Application Programming Interface and in simple terms, what it does is that it allows applications to communicate with one another. An API is the messenger that takes a request, tells a system what you want to do and then returns the response back to you! So what then is a Restful API? REST is short for Representational State transfer and it is one which when called, the server transfers a representation of the state of the requested resource to the client.</p><p>Node.js is a JavaScript runtime built on Chrome’s V8 JavaScript engine. You can click <a href="https://nodejs.org/en/">here</a> for more information on Node. Express.js, or simply Express, is a web application framework for Node.js. It is designed for building web applications and APIs. It has been called the most commonly accepted server framework for Node.js.</p><p>Please read through the documentation of each of the above packages for how to install and walk with me as we build a simple rest API using them.</p><p>First and foremost, create a folder can call it any name you want. Next, we need to create a <em>package.json</em> file inside of that folder using the <em>npm init - -y </em>command. Next, create an index.js file too in the same folder and add the following code to it.</p><pre>const express = require(&#39;express&#39;);</pre><pre>const app = express();</pre><pre>const port = process.env.PORT || 3000;</pre><pre>app.listen(port,()=&gt;{</pre><pre>   console.log(&#39;listening on port &#39; + port);</pre><pre>})</pre><p>In the above code, we are basically just importing express into our project and assigning the port we want the server to listen on a variable called <em>port</em> and then calling the listen method on our variable app which is an instance of express.</p><p>Next, we create a JSON file which contains JSON data that we’ll use to test our API endpoints. Add the contents below to your JSON file and name it videodata.json</p><pre>[</pre><pre>{</pre><pre>&quot;categoryID&quot;: &quot;294&quot;,</pre><pre>&quot;parentID&quot;: &quot;304&quot;,</pre><pre>&quot;subjectID&quot;: &quot;7&quot;,</pre><pre>&quot;categoryName&quot;: &quot;Apps and Side Dishes (Laura)&quot;,</pre><pre>&quot;categoryDescription&quot;: &quot;Learn to make amazing appetizers and side dishes with Laura in the Kitchen.&quot;,</pre><pre>&quot;videosCount&quot;: &quot;101&quot;,</pre><pre>&quot;forumCategoryID&quot;: &quot;163&quot;</pre><pre>},</pre><pre>{</pre><pre>&quot;categoryID&quot;: &quot;285&quot;,</pre><pre>&quot;parentID&quot;: &quot;304&quot;,</pre><pre>&quot;subjectID&quot;: &quot;7&quot;,</pre><pre>&quot;categoryName&quot;: &quot;Side Dishes&quot;,</pre><pre>&quot;categoryDescription&quot;: &quot;Side dish recipes for salads, vegetables, sauces with Hilah cooking.&quot;,</pre><pre>&quot;videosCount&quot;: &quot;38&quot;,</pre><pre>&quot;forumCategoryID&quot;: &quot;163&quot;</pre><pre>},</pre><pre>{</pre><pre>&quot;categoryID&quot;: &quot;337&quot;,</pre><pre>&quot;parentID&quot;: &quot;304&quot;,</pre><pre>&quot;subjectID&quot;: &quot;7&quot;,</pre><pre>&quot;categoryName&quot;: &quot;Side Dishes (bt)&quot;,</pre><pre>&quot;categoryDescription&quot;: &quot;Side dish recipes with Byron Talbott.&quot;,</pre><pre>&quot;videosCount&quot;: &quot;5&quot;,</pre><pre>&quot;forumCategoryID&quot;: &quot;163&quot;</pre><pre>},</pre><pre>{</pre><pre>&quot;categoryID&quot;: &quot;301&quot;,</pre><pre>&quot;parentID&quot;: &quot;304&quot;,</pre><pre>&quot;subjectID&quot;: &quot;7&quot;,</pre><pre>&quot;categoryName&quot;: &quot;Side Dishes for Barbecue&quot;,</pre><pre>&quot;categoryDescription&quot;: &quot;Barbecue side dish recipes done on the grill by the BBQ Pit Boys!&quot;,</pre><pre>&quot;videosCount&quot;: &quot;43&quot;,</pre><pre>&quot;forumCategoryID&quot;: &quot;163&quot;</pre><pre>},</pre><pre>{</pre><pre>&quot;categoryID&quot;: &quot;297&quot;,</pre><pre>&quot;parentID&quot;: &quot;304&quot;,</pre><pre>&quot;subjectID&quot;: &quot;7&quot;,</pre><pre>&quot;categoryName&quot;: &quot;Soups and Salads (Laura)&quot;,</pre><pre>&quot;categoryDescription&quot;: &quot;Looking for the perfect recipe to start your meal? Or are you looking to eat something on the lighter side? These are sure to have you covered!&quot;,</pre><pre>&quot;videosCount&quot;: &quot;70&quot;,</pre><pre>&quot;forumCategoryID&quot;: &quot;163&quot;</pre><pre>}</pre><pre>]</pre><p>Next, we have to require the <em>videodata.json</em> file in our <em>index.js </em>file so that our API endpoints can make use of it.</p><pre>app.use(express.json());</pre><pre>const data = require(&#39;./videodata.json&#39;);</pre><pre>//.= app.locals.videodata;</pre><pre>app.get(&#39;/api/videos&#39;, (req,res) =&gt; {</pre><pre>res.send(data);</pre><pre>})</pre><pre>app.get(&#39;/api/videos/:categoryID&#39;, (req,res) =&gt; {</pre><pre>const category = data.find((a) =&gt; a.categoryID == req.params.categoryID);</pre><pre>if(!category){</pre><pre>return res.status(404).send(&#39;Category does not exist&#39;);</pre><pre>}</pre><pre>return res.status(200).send(category);</pre><pre>})</pre><pre>app.post(&#39;/api/videos&#39;, (req,res) =&gt; {</pre><pre>const newInfo = {</pre><pre>&quot;categoryID&quot;: req.body.categoryID,</pre><pre>&quot;parentID&quot;: req.body.parentID,</pre><pre>&quot;subjectID&quot;: req.body.subjectID,</pre><pre>&quot;categoryName&quot;: req.body.categoryName,</pre><pre>&quot;categoryDescription&quot;: req.body.categoryDescription,</pre><pre>&quot;videosCount&quot;: req.body.videosCount,</pre><pre>&quot;forumCategoryID&quot;: req.body.forumCategoryID</pre><pre>}</pre><pre>data.push(newInfo);</pre><pre>res.send(newInfo);</pre><pre>})</pre><p>Type the above code just above the app.listen.</p><p>The URLs in the screenshot are called endpoints. The get and post just before them are called HTTP verbs. With the first get method, i.e</p><p><em>app.get(‘/api/videos’, (req,res) =&gt; {</em></p><p><em>res.send(data);</em></p><p><em>}),</em> we are trying to retrieve all data in videodata.json while for the second get method, we are trying to retrieve a single item based on a particular parameter which in this case is the <em>id. </em>Lastly, with the post method, we are attempting to add new data to the array of objects.</p><p>Every one of these endpoints can be tested using POSTMAN.</p><p>I hope this helps someone just starting out with Nodejs and Express.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6153de2bb7a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devcareers/a-beginners-attempt-to-explain-how-to-build-a-simple-rest-api-with-nodejs-and-express-d6153de2bb7a">A beginner’s attempt to explain how to build a simple Rest API with Nodejs and Express.</a> was originally published in <a href="https://medium.com/devcareers">devcareers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Early days on the Laptops4Developers Program.]]></title>
            <link>https://medium.com/devcareers/early-days-on-the-laptops4developers-program-412d9d20d77e?source=rss-7c146ab488b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/412d9d20d77e</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[laptop4developer]]></category>
            <dc:creator><![CDATA[Temiloluwa Abiodun-Ojo]]></dc:creator>
            <pubDate>Wed, 21 Aug 2019 12:18:56 GMT</pubDate>
            <atom:updated>2019-08-21T12:18:56.453Z</atom:updated>
            <content:encoded><![CDATA[<p>So you may be wondering what the Laptops4developers program is about. It is a program organized by <a href="http://devcareer.io/">DevCareers</a>, a Non-Profit organization that’s focused on supporting upcoming developers with resources such as laptops, internet connection, co-workspace to mention a few on their way to becoming world-class software developers. I started on the 14th of August and it’s been a wonderful ride so far. I’m using resources for backend development and we’ve been assigned mentors. The mentor for us backend developers is <a href="https://twitter.com/bytenaija">@bytenaija</a> and looking at the curriculum he created for us I can say we’re going to be busy doing great stuff.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nGOdXGQxeGHvRMk173zWKQ.jpeg" /></figure><p>I would not fail to mention some of the people who are also on this same journey from John to <a href="https://medium.com/@osunkunleolanrewaju">Lanre</a> to <a href="https://medium.com/@adeolaayo311">Ayo</a> to Marho to everyone (too many names to mention but you all are not any less important), may the codes always be in our favor. And to <a href="https://medium.com/@okoyecb">Chidi Okoye</a>, <a href="https://medium.com/@olagoketobi">Tobi Olaogoke</a> and <a href="https://medium.com/@hacksultan">Hack Sultan</a> who constantly check up on us, well done and thank you!</p><p>So in one week, I’ve learned how to collaborate on a project using git and Github, I’ve learned how to build a simple web server using node js and express. Baby steps yes! but steps in the right direction. It’s still early days but I am excited about the next 3 months.</p><p>Thanks for dropping by.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=412d9d20d77e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devcareers/early-days-on-the-laptops4developers-program-412d9d20d77e">Early days on the Laptops4Developers Program.</a> was originally published in <a href="https://medium.com/devcareers">devcareers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[First week done:My experience]]></title>
            <link>https://medium.com/@temiloluwaabiodunojo/first-week-done-my-experience-e230d3f51123?source=rss-7c146ab488b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/e230d3f51123</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[frontend]]></category>
            <dc:creator><![CDATA[Temiloluwa Abiodun-Ojo]]></dc:creator>
            <pubDate>Mon, 15 Apr 2019 10:07:17 GMT</pubDate>
            <atom:updated>2019-04-15T10:07:17.066Z</atom:updated>
            <content:encoded><![CDATA[<p>So week one is over and I can say my eyes have been opened wider. Even though it was stressful(9am to 4pm daily), I can basically say the stress was worth it. So on the first day, we were all asked to introduce ourselves and tell the rest of the class what we hoped to have achieved by the end of the class(It’s a 3 months class).</p><p>Throughout the week, we were introduced to what computer science is about and then introduced to some important computer science concepts like Programming, Data Structures, Software Engineering and a few others. We were introduced to programming using the python programming language and we were given about 50 tasks to complete by the end of the week using python.</p><p>Overall,even though there wasn’t much I had not heard of before(from my days in the CSC classes in school), I got a better understanding of most of the concepts that were taught and that, I think will serve me well as we go on in this class(thank you!Mr Israel).</p><p>I think I’ve typed enough, let me go and get prepared for next week’s dose, I heard we’re starting front-end development(I wonder what that is :).See you soon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e230d3f51123" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 2 of the web development journey: A Python day!]]></title>
            <link>https://medium.com/@temiloluwaabiodunojo/day-2-of-the-web-development-journey-a-python-day-503bdc8e9108?source=rss-7c146ab488b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/503bdc8e9108</guid>
            <dc:creator><![CDATA[Temiloluwa Abiodun-Ojo]]></dc:creator>
            <pubDate>Wed, 10 Apr 2019 09:02:14 GMT</pubDate>
            <atom:updated>2019-04-10T09:02:14.929Z</atom:updated>
            <content:encoded><![CDATA[<p>So I’m back again!. Today was the second day of the next 3 months of my web development journey and boy, it was exciting.It was a gentle introduction to Object Oriented Programming. From objects to classes to attributes to constructors to methods. Then we talked about data structures and we were also introduced to Python programming language and we were asked to carry out some programming tasks. In all there are 50 tasks and we’re supposed to complete them by the end of the week,phew! Is someone pitying me already?! No need to, I completed 30 of them already!</p><p>So basically,we started writing codes today and it was fun, from trying to get tasks done to helping my co-learners that were stuck find out where the errors were. I’m looking forward to tomorrow again!</p><p>In other news ,I remember writing about playing a game on kahoot.it about things we are taught daily. Well, I still didn’t win today but I improved, I was 5th!,we try again tomorrow!</p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=503bdc8e9108" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[First day at Hub67 full stack development class]]></title>
            <link>https://medium.com/@temiloluwaabiodunojo/first-day-at-hub67-full-stack-development-class-5174d625122d?source=rss-7c146ab488b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/5174d625122d</guid>
            <dc:creator><![CDATA[Temiloluwa Abiodun-Ojo]]></dc:creator>
            <pubDate>Tue, 09 Apr 2019 03:53:33 GMT</pubDate>
            <atom:updated>2019-04-09T03:53:33.976Z</atom:updated>
            <content:encoded><![CDATA[<p>So I decided to enrol for a full stack development class to help me improve on my existing knowledge of web technologies and in the next few chapters I will be letting you in on how my first day went. Follow me!</p><p>So the class was supposed to start at 9am but due to the fact that I had to run some errands for my parents earlier I didn’t get there until about 9:33 am but thankfully when I got there, the facilitators we’re still setting up and I was thankful that they didn’t start without me! So as the class kicked off, we were taken through various topics like what computer science is about, algorithms were explained in layman’s terms, we also talked about what programming is about. To be very honest, I was bored at the beginning due to the fact that I already knew most of the things that was being talked about due to the fact that I am from a computer science background but I also understand that most of my other classmates are new to computer science and the concepts of programming so I’ll just buckle down and see this as an opportunity to refresh my memory until we start the hands on practical.</p><p>The most interesting part of the day was when we were welcomed back from the lunch break with a quiz taken on kahoot.it. It was a struggle to complete the quiz due to poor internet connectivity but I actually enjoyed the idea and had so much fun with it even though I didn’t win.We try again tomorrow!</p><p>So overall, my day started on a boring note, but by the time the day ended, I felt like I had actually spent my day on something worthwhile and my journey to being a world class software developer has just started!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5174d625122d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>