<?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>Forem: Bhavya Kaushik</title>
    <description>The latest articles on Forem by Bhavya Kaushik (@bkaush).</description>
    <link>https://forem.com/bkaush</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%2F1597972%2Fa5777f81-7455-4b89-ab98-e25b03e312bb.jpg</url>
      <title>Forem: Bhavya Kaushik</title>
      <link>https://forem.com/bkaush</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/bkaush"/>
    <language>en</language>
    <item>
      <title>Notes on Types of Database: Part 1</title>
      <dc:creator>Bhavya Kaushik</dc:creator>
      <pubDate>Tue, 11 Jun 2024 17:14:45 +0000</pubDate>
      <link>https://forem.com/bkaush/notes-on-types-of-database-part-1-2cf7</link>
      <guid>https://forem.com/bkaush/notes-on-types-of-database-part-1-2cf7</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flqe2q5eyobypode438pu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flqe2q5eyobypode438pu.png" alt="Types of Database" width="800" height="573"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>database</category>
      <category>systemdesign</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Single Server Setup: Basics of System Design</title>
      <dc:creator>Bhavya Kaushik</dc:creator>
      <pubDate>Mon, 10 Jun 2024 15:52:48 +0000</pubDate>
      <link>https://forem.com/bkaush/single-server-setup-basics-of-system-design-b59</link>
      <guid>https://forem.com/bkaush/single-server-setup-basics-of-system-design-b59</guid>
      <description>&lt;p&gt;Designing a system can look very daunting at first.&lt;/p&gt;

&lt;p&gt;But it all starts with a small step.&lt;/p&gt;

&lt;p&gt;So, while designing a system, we start off with a very simple approach where the system has only one server. Hence, called Single Server Setup.&lt;/p&gt;

&lt;p&gt;A single server setup involves running your entire application stack (web server, database, application logic, etc.) on a single physical or virtual machine. It's straightforward, cost-effective, and perfect for startups or small projects where simplicity and budget are key.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understanding the diagram
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcd5anyajp8788vbngj5b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcd5anyajp8788vbngj5b.png" alt="Client Server Architecture" width="800" height="503"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Let's say you are a user, who wants to extract some examples of pet animals from &lt;code&gt;www.example.com&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;When you access this website through domain name (&lt;code&gt;www.example.com&lt;/code&gt;), the web hosting company who is providing Domain Name System (DNS) service to this website will give you an IP address (e.g., 69.89.31.226).&lt;/li&gt;
&lt;li&gt;As the IP address is provided, an HTTP (HyperText Transfer Protocol) request is sent to the web server.&lt;/li&gt;
&lt;li&gt;The web server will process the request and send the desired output in the form of HTML page or JSON response to your browser.
That response is rendered by your web browser and you will be able to see the examples of pet animals.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Like you, many users must be accessing this website. So there are two main sources of traffic that can come to the server:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Web application:&lt;/strong&gt; This is accessed through a desktop device. Web application combines server-side logic (handling business processes and database communication) with client-side rendering (displaying content in browsers using HTML, CSS, and JavaScript). Together, they create interactive experiences accessible via web browsers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mobile application:&lt;/strong&gt; This is accessed through a mobile device. Mobile apps communicate with the web server through HTTP protocol. As JSON is a very lightweight API response format, it is used to send data from the server.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To conclude, there are many components that we are going to discuss in the system design that will extend this architecture.&lt;/p&gt;

</description>
      <category>systemdesign</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>learning</category>
    </item>
    <item>
      <title>.gitignore file IGNORED my .env file</title>
      <dc:creator>Bhavya Kaushik</dc:creator>
      <pubDate>Sun, 09 Jun 2024 08:35:09 +0000</pubDate>
      <link>https://forem.com/bkaush/gitignore-file-ignored-my-env-file-3lgf</link>
      <guid>https://forem.com/bkaush/gitignore-file-ignored-my-env-file-3lgf</guid>
      <description>&lt;p&gt;I'm learning React.&lt;/p&gt;

&lt;p&gt;So while developing a project on React, I was using some Appwrite functionalities to do the backend stuff easily.&lt;/p&gt;

&lt;p&gt;I created a .env file and saved all the necessary keys inside it.&lt;/p&gt;

&lt;p&gt;I was about to commit the changes when I saw that the .env file was not showing in dark grayish color, instead showing greenish color in VSCode directory structure. &lt;/p&gt;

&lt;p&gt;I understood that .gitignore file might not be considering .env file.&lt;/p&gt;

&lt;p&gt;When I opened it, I saw that .gitignore does not have ".env" inside it. So, I wrote it. Then refreshed the directory but it was still showing the same result.&lt;/p&gt;

&lt;p&gt;After researching, I found out that I need to delete the .env file and then commit it again.&lt;/p&gt;

&lt;p&gt;So, this is how I solved this problem:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Copied all the content of .env file in Clipboard and deleted .env file.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Created a new .env file and pasted the copied content inside it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Updated .gitignore file by adding &lt;code&gt;*.env&lt;/code&gt; inside it (Writing &lt;code&gt;.env&lt;/code&gt; did not work for me).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Committed the changes in git&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;code&gt;git add .&lt;br&gt;
git commit -m "Removing the .env file from git"&lt;br&gt;
git push origin main&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>react</category>
      <category>programming</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
