<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Lav kushwaha</title>
    <description>The latest articles on DEV Community by Lav kushwaha (@lavkushwaha01).</description>
    <link>https://dev.to/lavkushwaha01</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3211290%2F908237da-258c-40dc-b0b1-e3c0d26b78b5.jpeg</url>
      <title>DEV Community: Lav kushwaha</title>
      <link>https://dev.to/lavkushwaha01</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lavkushwaha01"/>
    <language>en</language>
    <item>
      <title>My DevOps Journey – Week 1</title>
      <dc:creator>Lav kushwaha</dc:creator>
      <pubDate>Mon, 16 Jun 2025 02:51:20 +0000</pubDate>
      <link>https://dev.to/lavkushwaha01/1st-week-of-my-devops-journey-3eip</link>
      <guid>https://dev.to/lavkushwaha01/1st-week-of-my-devops-journey-3eip</guid>
      <description>&lt;div class="ltag__link"&gt;
  &lt;a href="/lavkushwaha01" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&gt;
      &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3211290%2F908237da-258c-40dc-b0b1-e3c0d26b78b5.jpeg" alt="lavkushwaha01"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="https://dev.to/lavkushwaha01/my-devops-journey-week-1-mastering-the-foundations-of-modern-infrastructure-4mam" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;🚀 My DevOps Journey – Week 1: Mastering the Foundations of Modern Infrastructure&lt;/h2&gt;
      &lt;h3&gt;Lav kushwaha ・ Jun 16&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
        &lt;span class="ltag__link__tag"&gt;#git&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#bash&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#mern&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#docker&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;


</description>
      <category>git</category>
      <category>bash</category>
      <category>mern</category>
      <category>docker</category>
    </item>
    <item>
      <title>🚀 My DevOps Journey – Week 1: Mastering the Foundations of Modern Infrastructure</title>
      <dc:creator>Lav kushwaha</dc:creator>
      <pubDate>Mon, 16 Jun 2025 02:48:32 +0000</pubDate>
      <link>https://dev.to/lavkushwaha01/my-devops-journey-week-1-mastering-the-foundations-of-modern-infrastructure-4mam</link>
      <guid>https://dev.to/lavkushwaha01/my-devops-journey-week-1-mastering-the-foundations-of-modern-infrastructure-4mam</guid>
      <description>&lt;p&gt;🔖 Tags: #devops, #aws, #git, #bash, #MERN, #docker, #pm2&lt;/p&gt;

&lt;h2&gt;
  
  
  👋 Introduction
&lt;/h2&gt;

&lt;p&gt;In Week 1 of my DevOps journey, I laid a strong foundation by exploring essential tools, systems, and cloud infrastructure practices. DevOps is all about collaboration, automation, and delivering better software, faster—and this week gave me a deep dive into the basics.**&lt;/p&gt;

&lt;p&gt;Here’s what I covered:&lt;/p&gt;

&lt;p&gt;✅ Git &amp;amp; GitHub&lt;br&gt;
✅ Bash &amp;amp; Terminal mastery&lt;br&gt;
✅ Virtual Machines&lt;br&gt;
✅ SSH authentication&lt;br&gt;
✅ MERN stack hosting&lt;br&gt;
✅ AWS EC2 deployment&lt;br&gt;
✅ Reverse proxies &amp;amp; process management&lt;br&gt;
✅ Streamlined DevOps workflows&lt;/p&gt;

&lt;p&gt;Let’s go over each topic in detail.&lt;/p&gt;
&lt;h2&gt;
  
  
  🗂️ Git &amp;amp; GitHub – The Backbone of Collaboration
&lt;/h2&gt;

&lt;p&gt;Git is a distributed version control system that allows developers to track code changes and collaborate efficiently. GitHub builds on top of Git by offering cloud-based repositories, pull requests, issue tracking, and integrations with CI/CD tools.&lt;/p&gt;

&lt;p&gt;📦&lt;strong&gt;Core Commands:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git init                     # Initialize repo
git add .                   # Stage all changes
git commit -m "message"     # Commit changes
git branch -M main          # Rename branch
git remote add origin URL   # Link remote repo
git push -u origin main     # Push code
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Git &amp;amp; GitHub are vital in CI/CD pipelines and code collaboration in DevOps environments.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  🧠 Bash &amp;amp; Terminal Mastery
&lt;/h2&gt;

&lt;p&gt;Bash is a Unix shell that lets DevOps engineers write scripts and automate tasks.&lt;/p&gt;

&lt;p&gt;🔧 &lt;strong&gt;Basic Commands&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Command  Description
pwd Print working directory
ls -l   List files with details
cd, mkdir, rm   Navigate/create/delete folders
nano, cat   Edit or view files
sudo, adduser   User permissions &amp;amp; creation
ifconfig, ping  Networking checks


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;📦 &lt;strong&gt;Package Management&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade
sudo apt install nodejs npm git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Bash scripting will be a key focus next week to automate these workflows.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  🧱 Virtual Machines
&lt;/h2&gt;

&lt;p&gt;A Virtual Machine (VM) simulates a physical machine using virtualization. It's used to run isolated environments on the same physical hardware.&lt;/p&gt;

&lt;p&gt;Hosted via hypervisors like VirtualBox or cloud platforms like AWS&lt;/p&gt;

&lt;p&gt;Ideal for building, testing, and deploying apps in a production-like environment&lt;/p&gt;

&lt;p&gt;🔐 &lt;strong&gt;SSH Protocol – Secure Remote Access&lt;/strong&gt;&lt;br&gt;
SSH (Secure Shell) is used to securely access and manage remote servers.&lt;/p&gt;

&lt;p&gt;🔑 &lt;strong&gt;Key Usage:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ssh user@remote-ip
ssh -i ~/.ssh/private-key.pem user@host
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;SSH is essential for connecting to cloud servers, configuring services, and deploying code remotely.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  🌐Hosting Full-Stack (MERN) Projects
&lt;/h2&gt;

&lt;p&gt;Hosting a MERN (MongoDB, Express, React, Node.js) stack involves deploying both frontend and backend with appropriate routing, environment configs, and server process management.&lt;/p&gt;

&lt;p&gt;Coming up next: containerizing MERN apps using Docker and deploying them on cloud platforms!&lt;/p&gt;

&lt;p&gt;☁️ AWS Fundamentals – Deploying Node.js on EC2&lt;br&gt;
This week, I deployed a backend app on AWS using an EC2 instance.&lt;/p&gt;

&lt;p&gt;🪜 &lt;strong&gt;Step-by-Step:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;1️⃣ Launch EC2 Instance&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AMI: Ubuntu 20.04 LTS&lt;/li&gt;
&lt;li&gt;Instance type: t2.micro (free tier)&lt;/li&gt;
&lt;li&gt;Ports:&lt;/li&gt;
&lt;li&gt;22 (SSH)&lt;/li&gt;
&lt;li&gt;3000 (App)&lt;/li&gt;
&lt;li&gt;80 (HTTP)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;2️⃣ Connect via SSH&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;chmod 400 your-key.pem
ssh -i your-key.pem ubuntu@&amp;lt;ec2-ip&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;3️⃣ Install Server Tools&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt update
sudo apt install nodejs npm git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;4️⃣ Clone and Setup Project&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone https://github.com/your-username/your-project.git
cd your-project
npm install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;5️⃣ Set Environment Variables&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export MONGO_URI="your-mongo-url"
export JWT_SECRET="your-secret-key"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;6️⃣ Start Server&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;node index.js
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Bonus: Use pm2 to manage your app in production:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install -g pm2
pm2 start index.js

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;7️⃣ Visit the Live App&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;`http://&amp;lt;ec2-public-ip&amp;gt;:3000`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🔄 Reverse Proxies &amp;amp; Process Managers&lt;br&gt;
A reverse proxy forwards client requests to your application. It adds a layer of abstraction and security.&lt;/p&gt;
&lt;h2&gt;
  
  
  🔁 How Nginx Works:
&lt;/h2&gt;

&lt;p&gt;Listens on port 80&lt;/p&gt;

&lt;p&gt;Forwards traffic to backend on port 3000&lt;/p&gt;

&lt;p&gt;Enables HTTPS, load balancing, and caching&lt;/p&gt;

&lt;p&gt;🔧** Nginx Sample Config:**&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;server {
  listen 80;
  server_name yourdomain.com;

  location / {
    proxy_pass http://localhost:3000;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;pm2 ensures your app stays running even after disconnection or crashes.&lt;/p&gt;

&lt;p&gt;📈 Streamlined Workflows &amp;amp; CI/CD Thinking&lt;br&gt;
DevOps isn’t just tools—it’s about efficiency and automation:&lt;/p&gt;

&lt;p&gt;✅ Using Git branches with meaningful names&lt;/p&gt;

&lt;p&gt;✅ Creating shell scripts for setup&lt;/p&gt;

&lt;p&gt;✅ Setting up .env files with secrets&lt;/p&gt;

&lt;p&gt;✅ Planning CI/CD pipelines (coming next week)&lt;/p&gt;

&lt;p&gt;These practices help maintain consistency, speed, and scalability in your projects.&lt;/p&gt;

&lt;h2&gt;
  
  
  🧠 Summary
&lt;/h2&gt;

&lt;p&gt;This week I:&lt;br&gt;
✅ Set up Git, GitHub, and learned version control&lt;br&gt;
✅ Practiced terminal commands and system navigation&lt;br&gt;
✅ Connected to cloud servers using SSH&lt;br&gt;
✅ Hosted my backend project on AWS&lt;br&gt;
✅ Learned the purpose of reverse proxies and process managers&lt;/p&gt;

&lt;h2&gt;
  
  
  ⏭️ What’s Coming in Week 2?
&lt;/h2&gt;

&lt;p&gt;Next, I plan to learn:&lt;br&gt;
🔸Docker and DockerHub&lt;br&gt;
🔸CI/CD pipeline &lt;/p&gt;

&lt;h2&gt;
  
  
  🙌 Final Thoughts
&lt;/h2&gt;

&lt;p&gt;DevOps is a journey, not a destination. It’s a mindset, a toolset, and a continuous practice. Week 1 gave me the confidence to build, deploy, and scale more effectively—and I’m just getting started!&lt;/p&gt;

&lt;p&gt;Let’s keep building 💻&lt;br&gt;
If you’re on a similar journey, feel free to comment, connect, or collaborate.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;✍️ By Lav Kushwaha&lt;br&gt;
📅 Week 1 of My #100DaysOfDevOps&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>git</category>
      <category>bash</category>
      <category>mern</category>
      <category>docker</category>
    </item>
  </channel>
</rss>
