<?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 Imad Zalmat on Medium]]></title>
        <description><![CDATA[Stories by Imad Zalmat on Medium]]></description>
        <link>https://medium.com/@imaden.zalmat?source=rss-e27debd392c0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DlFUdU7lfuw9mCMYwct-Ig.jpeg</url>
            <title>Stories by Imad Zalmat on Medium</title>
            <link>https://medium.com/@imaden.zalmat?source=rss-e27debd392c0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 04:12:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@imaden.zalmat/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[Setting Up NGINX on an AWS Instance: My DevOps Stage 0 Experience]]></title>
            <link>https://medium.com/@imaden.zalmat/setting-up-nginx-on-an-aws-instance-my-devops-stage-0-experience-414e41256623?source=rss-e27debd392c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/414e41256623</guid>
            <dc:creator><![CDATA[Imad Zalmat]]></dc:creator>
            <pubDate>Sun, 02 Feb 2025 18:40:45 GMT</pubDate>
            <atom:updated>2025-02-02T18:40:45.516Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tYSllxewvPafmHs9VYVPeg.jpeg" /><figcaption>NGINX/AWS</figcaption></figure><p>As part of my DevOps Stage 0 task in the HNG12 internship, I was required to set up and configure NGINX on an AWS EC2 instance. This task provided me with hands-on experience in cloud infrastructure setup, server configuration, and troubleshooting. In this blog, I will walk through my approach, the challenges I encountered, and the valuable lessons I learned along the way.</p><h3>Task Breakdown and Approach</h3><h3>1. Launching an AWS EC2 Instance</h3><p>The first step was to launch an EC2 instance on AWS. I chose an Ubuntu-based instance and ensured that the necessary security groups were set up to allow SSH (port 22) and HTTP (port 80) traffic.</p><h3>2. Connecting to the Instance</h3><p>To connect to the instance, I used SSH with a private key:</p><pre>ssh -i Imad-NGINX-2024-northeu.pem ubuntu@&lt;Public-IP&gt;</pre><p>However, I encountered a Permission denied (publickey) error. To resolve this, I ensured that:</p><p><strong>port 80 (HTTP)</strong> is open by :</p><ol><li>Going to <strong>AWS EC2 Console</strong>.</li><li>Clicking on my <strong>instance</strong>.</li><li>Finding <strong>Security Groups</strong>.</li><li>Under <strong>Inbound Rules</strong>, ensuring I have:</li></ol><ul><li><strong>Type:</strong> HTTP</li><li><strong>Protocol:</strong> TCP</li><li><strong>Port:</strong> 80</li><li><strong>Source:</strong> 0.0.0.0/0 (for public access)</li></ul><h3>3. Installing and Configuring NGINX</h3><p>Once connected, I proceeded with installing NGINX:</p><pre>sudo apt update &amp;&amp; sudo apt install nginx -y</pre><p>After installation, I started and enabled the NGINX service:</p><pre>sudo systemctl start nginx<br>sudo systemctl enable nginx</pre><h3>4. Setting Up a Custom Web Page</h3><p>I created an index.html file in /var/www/html/ with the following content:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot;&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>    &lt;title&gt;DevOps Stage 0&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>    &lt;h1&gt;Welcome to DevOps Stage 0 - Imad Zalmat/Imados&lt;/h1&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>When trying to save the file, I encountered a Permission denied error. So, since the file is owned by root I used <strong>sudo</strong> to get the permission to edit the file:</p><pre>sudo nano index.html</pre><p>After making these changes, I successfully saved the file.</p><h3>5. Allowing Firewall Access</h3><p>To ensure that the NGINX web page was accessible, I enabled UFW and allowed HTTP traffic:</p><pre>sudo ufw allow &#39;Nginx HTTP&#39;<br>sudo ufw enable</pre><p>After confirming the changes, I accessed my EC2 instance’s public IP in a browser, and the custom web page loaded successfully.</p><h3>Challenges and Solutions</h3><h3>1. SSH Connection Issues</h3><ul><li>Issue: Permission denied when connecting via SSH.</li><li>Solution: Ensured the .pem file had the correct permissions and the correct key was associated with the instance.</li></ul><h3>2. NGINX Not Loading in Browser</h3><ul><li>Issue: Despite installing NGINX, the browser did not load the page.</li><li>Solution: Allowed HTTP traffic via UFW and verified that NGINX was running with sudo systemctl status nginx. Also make the necessary changes to AWS security group through <strong>AWS EC2 Console. </strong>Then add new rule to make sure the server is accessible on <strong>Port:</strong> 80 when entering server <strong>public IP </strong>on the browser.</li></ul><h3>3. Permission Errors on index.html</h3><ul><li>Issue: Unable to edit the web page due to permission restrictions.</li><li>Solution: Changed ownership of /var/www/html/ and set the correct permissions.</li></ul><h3>Learning and Professional Growth</h3><p>This task provided me with valuable hands-on experience in setting up and troubleshooting cloud infrastructure, a crucial skill for DevOps engineers. I gained deeper insights into:</p><ul><li>Managing SSH access securely.</li><li>Working with NGINX configurations.</li><li>Troubleshooting Linux file permissions and firewall rules.</li></ul><p>The knowledge gained from this task aligns with my long-term goal of becoming a backend software engineer with strong DevOps skills. Understanding cloud infrastructure setup is essential for deploying scalable applications in real-world environments.</p><p>For companies looking to hire skilled DevOps professionals, platforms like <a href="https://hng.tech/hire/devops-engineers">HNG DevOps Engineers</a> provide access to talented individuals with hands-on experience in cloud deployment and infrastructure management.</p><h3>Conclusion</h3><p>Completing this task reinforced my understanding of cloud infrastructure and NGINX configurations. The challenges I faced and overcame helped solidify my problem-solving skills, which are essential in DevOps and backend development. This experience has set a strong foundation for future cloud-based projects and deployments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=414e41256623" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BookBeacon-Portfolio project of ALX foundation phase of Software engineering program.]]></title>
            <link>https://medium.com/@imaden.zalmat/bookbeacon-portfolio-project-of-alx-foundation-phase-of-software-engineering-program-7ca37be3cfec?source=rss-e27debd392c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ca37be3cfec</guid>
            <dc:creator><![CDATA[Imad Zalmat]]></dc:creator>
            <pubDate>Thu, 19 Sep 2024 00:33:39 GMT</pubDate>
            <atom:updated>2024-09-19T00:33:39.914Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dHkKYppTNTOXRs1_6MggNQ.png" /></figure><h3>1. Introduction</h3><p>BookBeacon is a web application designed to help book enthusiasts find rare and hard-to-locate books. The platform serves as a bridge between readers and elusive literature, making the search for uncommon books easier and more efficient.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Trd8Ju6iM1MLqBInH7AEZQ.png" /><figcaption>a prototype of the book list feature (The provided book covers are just for demonstration)</figcaption></figure><p><strong>Team:</strong> This project was developed by me, Imad Zalmat, as part of the ALX Foundation Phase portfolio for the Full Stack Software Engineering program.</p><p><strong>Target Audience:</strong> BookBeacon was created for bibliophiles, collectors, and researchers who often struggle to locate rare or out-of-print books.</p><p><strong>Personal Focus:</strong> My primary focus was on developing a user-friendly search interface, implementing efficient database queries for book information, and giving readers the ability to fill a form with the necessary information if the book is not on the database, then send a notification to them when the book is available.</p><h3>2. Story behind</h3><p>The idea for BookBeacon came from a discussion with a friend and also from a real-world problem I encountered during my studies. As a software engineering student at ALX, I often found myself searching for specific technical books that were out of print or hard to find. One particularly frustrating experience involved spending hours online trying to locate a rare edition of “Algorithm in C” by Robert Sedgewick. This challenge wasn’t unique to me; I discovered my friend faced similar difficulties in finding specialized or older programming texts. It struck me that while we have advanced search engines for general information, the world of rare and technical books lacked a dedicated platform. Inspired by this gap and drawing on my growing software development skills, I decided to create BookBeacon. The project’s name came from the idea of guiding readers to hidden literary treasures, much like a beacon guides ships to safe harbor. My goal was simple yet ambitious: to build a tool that would make it easier for students, professionals, and book enthusiasts to find those elusive texts that are crucial for learning and research. As I developed BookBeacon, I realized I was not just coding a website, but potentially solving a problem that could help many in their quest for knowledge.</p><h3>3. Project Accomplishments</h3><h3>Architecture Diagram</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*07EnMkngHyIL80-kPQwHVw.png" /><figcaption>The project architecture (still working on some features)</figcaption></figure><h3>Technology Stack</h3><p>For BookBeacon, I chose the following technologies:</p><ul><li>Backend: Python with Django framework</li><li>Frontend: HTML, CSS, and JavaScript</li><li>Database: Sqlite (for now), Mysql (later on)</li></ul><p>Choosing Django was a strategic decision. Its “batteries included” philosophy allowed me to focus on crafting unique features rather than reinventing the wheel. Plus, its robust ORM made database operations a breeze.</p><h3>4. Lessons from the Lighthouse</h3><p>Building BookBeacon has been a transformative experience. Here are some key takeaways:</p><ol><li><strong>The power of solving real problems</strong>: There’s an indescribable satisfaction in creating something that addresses a genuine need.</li><li><strong>The importance of user-centric design</strong>: Every feature, every button placement was decided with the end-user in mind.</li><li><strong>The value of perseverance</strong>: When faced with technical challenges, the key is to keep pushing, learning, and iterating.</li></ol><h3>5. What’s Next for BookBeacon?</h3><p>While the current version of BookBeacon is a working prototype, there’s still so much to explore. Future plans include:</p><ul><li>Implementing a recommendation system based on user preferences</li><li>Integrating with online bookstores for price comparisons</li><li>Developing a mobile app for on-the-go rare book hunting</li></ul><h3>About the Author</h3><p>I’m Imad Zalmat, a passionate software engineer with a love for books and technology. Through projects like BookBeacon, I aim to create meaningful solutions that enrich people’s lives.</p><ul><li>GitHub Repository: <a href="https://github.com/imadoszmt/BookBeacon">https://github.com/imadoszmt/BookBeacon</a></li><li>Project Landing Page: <a href="https://imadoszmt.github.io/BookBeacon/">https://imadoszmt.github.io/BookBeacon/</a></li><li>LinkedIn: <a href="https://www.linkedin.com/in/imad-zalmat-aa2940a9/">https://www.linkedin.com/in/imad-zalmat-aa2940a9/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ca37be3cfec" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>