<?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 Michael Matambo on Medium]]></title>
        <description><![CDATA[Stories by Michael Matambo on Medium]]></description>
        <link>https://medium.com/@michaelmatambo?source=rss-6c0f9578f9ce------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TFA3FVzspQXYvXT3teqOjw.jpeg</url>
            <title>Stories by Michael Matambo on Medium</title>
            <link>https://medium.com/@michaelmatambo?source=rss-6c0f9578f9ce------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 08:01:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@michaelmatambo/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[PERN Stack Todo App — Postgres, Express, React and Node (Backend)]]></title>
            <link>https://medium.com/@michaelmatambo/pern-stack-todo-app-postgres-express-react-and-node-backend-87620136e75d?source=rss-6c0f9578f9ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/87620136e75d</guid>
            <category><![CDATA[todo-apps]]></category>
            <category><![CDATA[expressjs]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[postgres]]></category>
            <category><![CDATA[pern]]></category>
            <dc:creator><![CDATA[Michael Matambo]]></dc:creator>
            <pubDate>Sat, 12 Feb 2022 19:21:15 GMT</pubDate>
            <atom:updated>2022-02-12T19:23:45.435Z</atom:updated>
            <content:encoded><![CDATA[<h3>PERN Stack Todo App — Postgres, Express, React and Node (Backend)</h3><figure><img alt="Learn the PERN stack by building a Todo List 2022" src="https://cdn-images-1.medium.com/max/1024/1*yUz2SLZTRiQLPRayo7wOOg.png" /></figure><p>Hello gang, let’s build a Todo App with Postgres, Express, React and Node. Let’s get started.</p><p>Step 1: create a new folder for your project.</p><p>Step 2: Initialize your project using npm init --y</p><p>Step 3: Install dependencies npm i express dotenv pg express-async-handler</p><p>Step 4: Install Dev dependencies npm i -D nodemon concurrently</p><p>Step 5: Setup up scripts for package.json like below:</p><figure><img alt="script for the package.json file" src="https://cdn-images-1.medium.com/max/967/1*ywDafkXozc8sO6W1IxqJWQ.png" /></figure><p>Step 6: Create a .env file and add your own Postgre URL (use <a href="https://medium.com/@noogetz/how-to-setup-a-database-with-elephantsql-7d87ea9953d0">ElephantSQL</a>, create an account and set up an instance) to PG_ELEPHANT_URL. See below</p><figure><img alt=".env file" src="https://cdn-images-1.medium.com/max/967/1*yK8DOtJhRTCKKJ3Ln72YDA.png" /></figure><p>Step 7: Create a folder in the root called config and inside create a db.js file. We will use db.js to connect to our database like below:</p><figure><img alt="how to connect to a postgresql database" src="https://cdn-images-1.medium.com/max/967/1*bpPSy24TjEY0WxTVsxkODw.png" /></figure><p>Step 8: Create a folder in the root called models and inside the folder create a file called 01_schema.sql. In this file we are going to create our model like below:</p><figure><img alt="a file called 01_schema with our model for our db" src="https://cdn-images-1.medium.com/max/967/1*ucdbqKJ0imOVGsHvW7owLA.png" /></figure><p>Step 9: Open <a href="https://tableplus.com/blog/2018/09/getting-started-with-postgresql-on-mac.html">table plus</a> connect to your database using the ElephantSQL connection string. Open the query tab on your left and copy the code above (the code in Step 8), click run All to run the query.</p><p>Step 10: We are going to create our CREATE, READ, UPDATE and DELETE endpoints. Create a folder in the root called routes. Inside the folder create a file called note.js. Create routers as followers:</p><figure><img alt="notes.js file show the create, read, update and delete routes" src="https://cdn-images-1.medium.com/max/967/1*fbwstoav6GDX8uY9WjOLwA.png" /></figure><p>Step 11: Create a folder in the root called controllers and inside the folder create a file called noteController.js. Create getNotes, createNote, updateNote, deleteNote functions as follows:</p><figure><img alt="noteController.js. Create getNotes, createNote, updateNote, delteNote function" src="https://cdn-images-1.medium.com/max/967/1*n8R9jHsYfVd5cp9mrpGxQQ.png" /></figure><p>Step 12: Create a folder called middleware, inside the folder create a file called errorMiddleware.js. In this file (errorMiddleware.js) was are going to create our own middleware that will handle errors for us like this:</p><figure><img alt="errorMiddleware function that handles errors" src="https://cdn-images-1.medium.com/max/967/1*472SN__nqVB4K-gn85a-1Q.png" /></figure><p>Step 13: Create a file called server.js. In this file, we are going to set up the server and connect our routes from the routes folder so we can create a note, update a note, get all the notes and delete a note. We are also going to connect our errorMiddleware (errorMiddleware.js) to handle our error. Our server file will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*w9cic7W8jQ4ir7BmJEeE6Q.png" /></figure><p>below you will find a video where l explain and go more in-depth.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FmsQJ_IVs2UQ%3Fstart%3D1%26feature%3Doembed%26start%3D1&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DmsQJ_IVs2UQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FmsQJ_IVs2UQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/1d91a5178594ec4dc9a11ce1f8672a43/href">https://medium.com/media/1d91a5178594ec4dc9a11ce1f8672a43/href</a></iframe><p>Happy Coding!!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87620136e75d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Choosing between self-learning, Bootcamp or College]]></title>
            <link>https://medium.com/@michaelmatambo/choosing-between-self-learning-bootcamp-or-college-7172c7090012?source=rss-6c0f9578f9ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/7172c7090012</guid>
            <category><![CDATA[selftlearning]]></category>
            <category><![CDATA[bootcamp]]></category>
            <category><![CDATA[webdesign-and-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[college]]></category>
            <dc:creator><![CDATA[Michael Matambo]]></dc:creator>
            <pubDate>Tue, 08 Feb 2022 21:10:10 GMT</pubDate>
            <atom:updated>2022-02-08T21:10:10.168Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3OlW9dw83JYfWNFW" /><figcaption>Photo by <a href="https://unsplash.com/@jefflssantos?utm_source=medium&amp;utm_medium=referral">Jefferson Santos</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This question is one of the hardest questions to answer. Whether to choose between self-learning, Bootcamp, or College. I have done all three and here is what l have found out about all of them.</p><p>I will start off with College as this is where my coding journey begins. I went to Algonquin College in Ottawa, Canada and l took their Computer Engineering program. It was a great program but later found out that l was interested in web development by the end of the two years. It is a great program if you want to learn languages like Java, C, C++, and some networking. This is the program from you.</p><p>I was interested in web development, designing the UI, so I decided to self-learn. Self-learning is hard as you don’t know what to study first. I soon found myself learning about WordPress, Webflow, this is where I sharpen my design and CSS skills. I spend the whole year building E-commerces stores and even designed a couple of Shopify stores. I reached the limitations of Webflow, which forced me to start learning how to build a backend of any Application. What I needed was a course that would give me a learning path to reach my goals. Team TreeHouse was the perfect course for me at the time as it was affordable ($25 per month), l took the Full Stack course.</p><p>The course gave me structure, and l learned Express, nodeJs and React. The React course was outdated so l had to read the React Documents, which l quickly learned that reading the documentation of any language is the fastest way to learn the language. You can then watch youtube videos on the topic you are currently learning, read medium blogs, this is the best way to learn for me. You will quickly find out that web development involves a lot of self-learning as technologies are constantly changing.</p><p>In 2021 l decided to go to a Bootcamp, l choose Lighthouse Labs. Choosing a Bootcamp is something I would only recommend after you have picked up a programming language and have done some self-learning. This way you will get the most out of the Bootcamp. Dots started to connect for me and the instructors explained things well, the only thing I hope they update is the React project. Students who didn’t self-learn before the Bootcamp did not finish, l think the course should be a 6-month course instead of 3 months. I believe it takes up to a minimum of a year for you to become a Junior Web developer.</p><p><strong>Conclusion</strong></p><p>Well, it all depends on how you learn best. What worked for me might not work for you. It’s okay to try all of the options to see what you like. What’s important is to stick to one thing until you complete it, then you can move on to your next goal. Stay focused and motivated.</p><p>Happy Coding!!!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7172c7090012" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with web development 2022]]></title>
            <link>https://medium.com/@michaelmatambo/getting-started-with-web-development-2022-81069ef57486?source=rss-6c0f9578f9ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/81069ef57486</guid>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[beginner-coding]]></category>
            <category><![CDATA[expressjs]]></category>
            <dc:creator><![CDATA[Michael Matambo]]></dc:creator>
            <pubDate>Mon, 07 Feb 2022 20:38:51 GMT</pubDate>
            <atom:updated>2022-02-07T20:38:51.522Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_TF41GE3B9jE_O9qKeqzdw.jpeg" /><figcaption>Laptop with code editor opened.</figcaption></figure><p>Ready to become a web developer in 2022? Choosing the right tech stack can be hard. You know what is harder is how to get started developing software as you will see a lot of different opinions on what tech stack to learn first.</p><p>If l was to start learning web development in 2022, this is how l would do it. I would pick Javascript as my first programming language to learn. You might ask why Javascript? Good question, it’s because its syntax is easy for beginners to understand how programming works. You can start making little projects with little knowledge of Javascript. Not only that, you have a huge community to help you through your web development journey.</p><p>You will find a lot of youtube videos on Javascript, cool projects you can build but be aware not to get trapped in Tutorial Hell. Tutorial Hell is when you are going from one tutorial to the next, without grasping the concepts of the tutorial. Try to add more features to the project you are building, or rebuild a different project using the same concepts you learned from the tutorial.</p><p>After learning the basics of Javascript, l would focus the next two weeks learning HTML and CSS before l learn React. What is React? React is a library that was created by Facebook (Meta) that allows you to break up the UI into smaller components that are easy to manage.</p><p>When you build a complex App, you will need to use a framework or library , this allows you to reuse code in multiple parts of your App. Learn React hooks as they are now preferred than class components.</p><p>After Learning the Frontend technologies used to develop websites, you need to learn Back technologies. To learn Backend development, you don’t need to learn a new language. I bet you are happy to hear that. Javascript can now be used in the backend thanks to nodeJs. For learning the Backend, l would suggest you learn nodeJs and express. Express has a large community of people willing to answer your questions. Express is used to build API, which is a set of definitions and protocols for building and integrating application software.</p><p>You will need a database to store your Application data and for that we will use PostgreSQL. PostgreSQL helps developers store data by performing CRUD, with stands from Create, Read, Update, Delete and these are all the functions every App Api is built on.</p><p>Now it’s time to build a small Full Stack project. This project can be anything, but has to be small. For example, build a small Todo Note App, that allows a user to Create a note, Edit the note and Delete the note. Small projects like this will help you see how all these technologies work together to solve a specific problem which is to create a todo note in our case.</p><p>Happy Coding</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81069ef57486" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>