<?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: Alok Kumar</title>
    <description>The latest articles on DEV Community by Alok Kumar (@alokoct21).</description>
    <link>https://dev.to/alokoct21</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%2F787304%2F5028d3b1-3aac-471d-8de9-fde5c0ee1762.jpeg</url>
      <title>DEV Community: Alok Kumar</title>
      <link>https://dev.to/alokoct21</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alokoct21"/>
    <language>en</language>
    <item>
      <title>The REST API Trick 95% of Developers Miss!</title>
      <dc:creator>Alok Kumar</dc:creator>
      <pubDate>Sun, 13 Jul 2025 05:05:38 +0000</pubDate>
      <link>https://dev.to/alokoct21/the-rest-api-trick-95-of-developers-miss-41oj</link>
      <guid>https://dev.to/alokoct21/the-rest-api-trick-95-of-developers-miss-41oj</guid>
      <description>&lt;h2&gt;
  
  
  REST API
&lt;/h2&gt;

&lt;p&gt;REST API is a way that enables communication between systems. It uses the HTTP method to exchange data in JSON format.&lt;/p&gt;

&lt;p&gt;&lt;a href="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%2Farticles%2Fu3gxww55sonr6ngj9upf.png" class="article-body-image-wrapper"&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%2Farticles%2Fu3gxww55sonr6ngj9upf.png" alt=" " width="800" height="560"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  There are Different HTTP Methods
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;GET&lt;/li&gt;
&lt;li&gt;POST&lt;/li&gt;
&lt;li&gt;DELETE&lt;/li&gt;
&lt;li&gt;PUT&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  GET
&lt;/h2&gt;

&lt;p&gt;The GET method is used to retrieve data from a database. &lt;/p&gt;

&lt;h2&gt;
  
  
  POST
&lt;/h2&gt;

&lt;p&gt;The POST method is used to add &amp;amp; update data to the Database. &lt;/p&gt;

&lt;h2&gt;
  
  
  DELETE
&lt;/h2&gt;

&lt;p&gt;The Delete method is used for deleting the data from the Database.&lt;/p&gt;

&lt;h2&gt;
  
  
  PUT
&lt;/h2&gt;

&lt;p&gt;The PUT method is used to replace the existing data provided in the request body.&lt;/p&gt;

&lt;h2&gt;
  
  
  Best Practices to create Routes
&lt;/h2&gt;

&lt;p&gt;Never use a verb while writing an API&lt;br&gt;
❌GET /getUerDetails  incorrect way&lt;br&gt;
✅GET /userdetails in the correct way&lt;/p&gt;

&lt;p&gt;Separate them using a Hyphen&lt;br&gt;
❌GET /getuserDetails&lt;br&gt;
✅GET /user-details&lt;/p&gt;

&lt;p&gt;In the API path and Route, everything is in lowercase&lt;br&gt;
❌GET /User-Details&lt;br&gt;
✅GET /user-details&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>javascript</category>
      <category>restapi</category>
    </item>
    <item>
      <title>SQL and NOSQL</title>
      <dc:creator>Alok Kumar</dc:creator>
      <pubDate>Thu, 12 Jun 2025 16:57:03 +0000</pubDate>
      <link>https://dev.to/alokoct21/sql-and-nosql-4gam</link>
      <guid>https://dev.to/alokoct21/sql-and-nosql-4gam</guid>
      <description>&lt;p&gt;Yesterday I learned something new about SQL and NoSQL. There are two types of databases: SQL and NoSQL. The SQL stands for [ structured query language ] and stores data in a table format. It has a fixed Schema for storing data, and NoSQL stores data in a JSON format that is Key key-value pair example [ name: “ Sujeet Jain” ]. It is a flexible and dynamic Schema for storing data.&lt;/p&gt;

&lt;p&gt;There are some databases present in the market.&lt;/p&gt;

&lt;h2&gt;
  
  
  SQL Database
&lt;/h2&gt;

&lt;p&gt;1: MySQL&lt;br&gt;
2: PostgreSQL&lt;br&gt;
3: Oracle&lt;/p&gt;

&lt;h2&gt;
  
  
  NoSQL Database
&lt;/h2&gt;

&lt;p&gt;1: MongoDB&lt;br&gt;
2: Radis&lt;br&gt;
3: Cassandra&lt;br&gt;
4: Neo4j&lt;/p&gt;

&lt;h2&gt;
  
  
  Some Real-life Examples: The Use of Databases
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Flipkart:
&lt;/h2&gt;

&lt;p&gt;There are two categories on Flipkart: clothing and electronics. Both categories have different fields, like clothing, which has a colour, name, size, brand, and description.&lt;br&gt;
The electronic category has different fields like specification, charging mode, wifi, SIM, camera, processor, RAM, etc.&lt;br&gt;
If we use sql database in Flipkart the some fields are going Null because the electronic category has different fields. Instead of using SQL, we use noSql database that stores dynamic data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ola Cab:
&lt;/h2&gt;

&lt;p&gt;Same as the Flipkart website that uses the NoSql for Dynamic Data. The Ola app also uses dynamic data. Because every time a new Person books a cab, the new location is added to the database. That‘s why it uses the NoSQL DB.&lt;/p&gt;

&lt;h2&gt;
  
  
  Netflix:
&lt;/h2&gt;

&lt;p&gt;Netflix uses the SQL database because the fields are the same for storing movie data. But Netflix has a few sections that use the movie recommendation model that recommend movies based on your previous preferences. It becomes dynamic when the different users have different tastes in movies. It uses the hybrid model for storing different types of data.&lt;/p&gt;

&lt;h2&gt;
  
  
  SQL Uses:
&lt;/h2&gt;

&lt;p&gt;SQL offers a consistent and structured data that is stored in rows and columns table format.&lt;br&gt;
SQL is mostly used: Enterprise applications, Banking, and inventory Management.&lt;/p&gt;

&lt;h2&gt;
  
  
  NOSQL Uses:
&lt;/h2&gt;

&lt;p&gt;NoSQL stores data in an unstructured format, which provides data scalability and flexibility. NoSQL is mostly used: streaming video applications, Uber applications, and data analytics. &lt;/p&gt;

&lt;p&gt;NOSQL Uses:&lt;/p&gt;

&lt;p&gt;NoSQL stores data in an unstructured format, which provides data scalability and flexibility&lt;br&gt;
NoSQL is mostly used: streaming video applications, Uber applications, and data analytics. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>I am Build TO-DO-list app using Node.js Express.js MongoDB Database.</title>
      <dc:creator>Alok Kumar</dc:creator>
      <pubDate>Sun, 13 Feb 2022 05:30:34 +0000</pubDate>
      <link>https://dev.to/alokoct21/i-am-build-to-do-list-app-using-nodejs-expressjs-mongodb-database-7hj</link>
      <guid>https://dev.to/alokoct21/i-am-build-to-do-list-app-using-nodejs-expressjs-mongodb-database-7hj</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuo0bt095vx7wwqw1ex88.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuo0bt095vx7wwqw1ex88.png" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Live Project&lt;/strong&gt; : &lt;a href="https://mighty-earth-03444.herokuapp.com/" rel="noopener noreferrer"&gt;https://mighty-earth-03444.herokuapp.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Souce Code&lt;/strong&gt; : &lt;a href="https://github.com/Alokoct21/TO-DO-App" rel="noopener noreferrer"&gt;https://github.com/Alokoct21/TO-DO-App&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I just make a to-do-list App using node.js express.js Mogodb atlas to store data on cloud using a ejs template engine to design the frontend and custom Css.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>node</category>
      <category>mongodb</category>
    </item>
    <item>
      <title>what is the best free resouce to learn node.js</title>
      <dc:creator>Alok Kumar</dc:creator>
      <pubDate>Thu, 06 Jan 2022 17:43:59 +0000</pubDate>
      <link>https://dev.to/alokoct21/what-is-the-best-free-resouce-to-learn-nodejs-2c05</link>
      <guid>https://dev.to/alokoct21/what-is-the-best-free-resouce-to-learn-nodejs-2c05</guid>
      <description></description>
    </item>
  </channel>
</rss>
