<?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: KU MADHAVI PORTE</title>
    <description>The latest articles on DEV Community by KU MADHAVI PORTE (@madhavi_24).</description>
    <link>https://dev.to/madhavi_24</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4261898%2Feae35a17-7771-4136-882f-7924bd9a4b9c.png</url>
      <title>DEV Community: KU MADHAVI PORTE</title>
      <link>https://dev.to/madhavi_24</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/madhavi_24"/>
    <language>en</language>
    <item>
      <title>What I Learned from Building and Testing a Task Management REST API</title>
      <dc:creator>KU MADHAVI PORTE</dc:creator>
      <pubDate>Tue, 24 Nov 2026 06:14:26 +0000</pubDate>
      <link>https://dev.to/madhavi_24/what-i-learned-from-building-and-testing-a-task-management-rest-api-2aei</link>
      <guid>https://dev.to/madhavi_24/what-i-learned-from-building-and-testing-a-task-management-rest-api-2aei</guid>
      <description>&lt;p&gt;Building a backend project is not just about making APIs work. It is also about checking whether they behave correctly in different situations. During my internship at Valentius Kryptix, I worked on a Task Management REST API project that helped me understand this in a practical way.&lt;/p&gt;

&lt;p&gt;The project was built using Node.js, Express.js, and MongoDB. Its main purpose was to allow users to register, log in, and manage their personal tasks through API endpoints.&lt;/p&gt;

&lt;p&gt;Understanding the Backend Functionality&lt;/p&gt;

&lt;p&gt;The API supports basic task management operations such as creating, viewing, updating, and deleting tasks. It also includes task statuses like pending, in-progress, and completed.&lt;/p&gt;

&lt;p&gt;One important part of the project was user authentication. I used bcryptjs to hash passwords and JSON Web Tokens (JWT) to authenticate users. Protected routes ensure that users need a valid token before accessing task-related functionality.&lt;/p&gt;

&lt;p&gt;I also learned that authentication and authorization are two different things. Logging in confirms who the user is, while authorization controls which data that user is allowed to access. In this project, users should only be able to manage their own tasks.&lt;/p&gt;

&lt;p&gt;Why Testing Matters&lt;/p&gt;

&lt;p&gt;While developing an API, it is easy to focus only on successful requests. However, real applications also receive invalid inputs, missing data, unauthorized requests, and requests for resources that do not exist.&lt;/p&gt;

&lt;p&gt;To handle this, I worked with Jest and Supertest for automated testing. Jest was used to organize and run the test cases, while Supertest helped send HTTP requests and check API responses.&lt;/p&gt;

&lt;p&gt;The project includes both unit and integration tests. It also uses a mocked database connection, so the automated test suite can run without requiring a live MongoDB server.&lt;/p&gt;

&lt;p&gt;A Few Things I Learned&lt;/p&gt;

&lt;p&gt;This project helped me improve my understanding of:&lt;/p&gt;

&lt;p&gt;API testing: Checking whether endpoints return the expected responses.&lt;/p&gt;

&lt;p&gt;Authentication and security: Using password hashing and JWT to protect user accounts and routes.&lt;/p&gt;

&lt;p&gt;Test coverage: Understanding how much of the application is covered by automated tests.&lt;/p&gt;

&lt;p&gt;The project also has a minimum coverage threshold of 80% for statements, branches, functions, and lines. This helped me understand why measuring test coverage is useful when building reliable applications.&lt;/p&gt;

&lt;p&gt;Final Thoughts&lt;/p&gt;

&lt;p&gt;Working on this project gave me a better understanding of how backend development and automated testing work together. I learned that writing an API is only one part of development; checking its reliability, handling errors, and protecting user data are equally important.&lt;/p&gt;

&lt;p&gt;It was a valuable hands-on learning experience during my internship at Valentius Kryptix, and I look forward to applying these concepts in future projects.&lt;/p&gt;

&lt;p&gt;Read the full article:&lt;a href="https://valentiuskryptix.com/?p=2148" rel="noopener noreferrer"&gt;https://valentiuskryptix.com/?p=2148&lt;/a&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>backend</category>
      <category>javascript</category>
      <category>node</category>
    </item>
  </channel>
</rss>
