<?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: Dedaldino Daniel</title>
    <description>The latest articles on DEV Community by Dedaldino Daniel (@dedaldinodev4).</description>
    <link>https://dev.to/dedaldinodev4</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%2F670831%2F7975420b-41b5-48a4-a149-5e430924b00b.jpg</url>
      <title>DEV Community: Dedaldino Daniel</title>
      <link>https://dev.to/dedaldinodev4</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dedaldinodev4"/>
    <language>en</language>
    <item>
      <title>Understanding Pipes in NestJS: What They Are, Benefits, and How to Use Them</title>
      <dc:creator>Dedaldino Daniel</dc:creator>
      <pubDate>Wed, 22 Oct 2025 15:25:11 +0000</pubDate>
      <link>https://dev.to/dedaldinodev4/understanding-pipes-in-nestjs-what-they-are-benefits-and-how-to-use-them-5cbh</link>
      <guid>https://dev.to/dedaldinodev4/understanding-pipes-in-nestjs-what-they-are-benefits-and-how-to-use-them-5cbh</guid>
      <description>&lt;h2&gt;
  
  
  🧩What Are Pipes in NestJS?
&lt;/h2&gt;

&lt;p&gt;In NestJS, Pipes are classes that are used to transform or validate incoming data before it reaches your controller’s method.&lt;/p&gt;

&lt;p&gt;They work like internal middleware, processing and sanitizing data automatically.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In short&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Validation: Ensures that incoming data meets certain rules.&lt;/li&gt;
&lt;li&gt;Transformation: Converts data types (e.g., from string to number).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ⚙️When Are Pipes Executed?
&lt;/h2&gt;

&lt;p&gt;Pipes are executed after NestJS resolves the route parameters but before the controller method is invoked.&lt;br&gt;
This allows you to intercept, validate, or modify the request data in a clean and structured way.&lt;/p&gt;

&lt;h2&gt;
  
  
  💡Benefits of Using Pipes
&lt;/h2&gt;

&lt;p&gt;✅ Centralized validation — keeps validation logic out of your controllers.&lt;br&gt;
 ✅ Reusable components — use the same pipe in multiple routes.&lt;br&gt;
 ✅ Cleaner and more readable code.&lt;br&gt;
 ✅ Perfect integration with class-validator and class-transformer.&lt;br&gt;
 ✅ Improved data integrity and consistency across your entire app.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔧 Example: Using the ValidationPipe
&lt;/h2&gt;

&lt;p&gt;Let’s create a simple DTO and apply the built-in ValidationPipe to a controller method.&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%2Fy6r45r9fwje5vsszzyk4.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%2Fy6r45r9fwje5vsszzyk4.png" alt="Create ValidationPipe" width="800" height="371"&gt;&lt;/a&gt;&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%2Fv1q4esy10fnl9d8uh7ak.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%2Fv1q4esy10fnl9d8uh7ak.png" alt="Controller use pipe" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  🚀 Conclusion
&lt;/h2&gt;

&lt;p&gt;Pipes in NestJS are a clean and powerful way to handle data transformation and validation.&lt;br&gt;
They make your backend code more maintainable, reusable, and consistent.&lt;/p&gt;

&lt;p&gt;If you want to write scalable, enterprise-grade applications — mastering pipes is a must!&lt;/p&gt;

&lt;h2&gt;
  
  
  Additional Resources
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://docs.nestjs.com/pipes" rel="noopener noreferrer"&gt;Official Nestjs Documentation: Pipe&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>node</category>
      <category>nestjs</category>
      <category>backend</category>
    </item>
    <item>
      <title>Use this template to create a backend with nodejs + express + prisma + typescript + tdd + S.O.L.I.D Principles</title>
      <dc:creator>Dedaldino Daniel</dc:creator>
      <pubDate>Mon, 22 Jan 2024 12:38:03 +0000</pubDate>
      <link>https://dev.to/dedaldinodev4/use-this-template-to-create-a-backend-with-nodejs-express-prisma-typescript-tdd-solid-principles-454p</link>
      <guid>https://dev.to/dedaldinodev4/use-this-template-to-create-a-backend-with-nodejs-express-prisma-typescript-tdd-solid-principles-454p</guid>
      <description>&lt;p&gt;Nowadays we don't want to waste so much time configuring so many things when starting an application, for nodejs backend devs this has been an annoying case for me, so this template is already configured and with a fantastic folder structure and ready to use.&lt;/p&gt;

&lt;p&gt;Take a look at the technologies used in the project or template:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Nodejs&lt;/li&gt;
&lt;li&gt;Express&lt;/li&gt;
&lt;li&gt;Prisma&lt;/li&gt;
&lt;li&gt;Typescript&lt;/li&gt;
&lt;li&gt;Jest + Supertest&lt;/li&gt;
&lt;li&gt;S.O.L.I.D Principles&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;See what the project folder structure looks like:&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%2Fsq0n3d1gvnvpvigtqbu9.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%2Fsq0n3d1gvnvpvigtqbu9.png" alt=" " width="371" height="760"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is the template link for you to use as you wish, you can contribute your ideas, as the project is open-source: &lt;a href="https://github.com/dedaldinodev4/api-node-express-ts-prisma-boilerplate" rel="noopener noreferrer"&gt;Template&lt;/a&gt;&lt;/p&gt;

</description>
      <category>typescript</category>
      <category>prisma</category>
      <category>node</category>
      <category>express</category>
    </item>
    <item>
      <title>Porque usar o "TDD" no seu dia-dia ?</title>
      <dc:creator>Dedaldino Daniel</dc:creator>
      <pubDate>Fri, 28 Apr 2023 14:03:29 +0000</pubDate>
      <link>https://dev.to/dedaldinodev4/porque-usar-o-tdd-no-seu-dia-dia--45f2</link>
      <guid>https://dev.to/dedaldinodev4/porque-usar-o-tdd-no-seu-dia-dia--45f2</guid>
      <description>&lt;p&gt;Desenvolvimento Orientado a Testes é um processo que modifica o paradigma do desenvolvimento de softwares tradicional. Em vez de desenvolver, primeiramente, seu código e ajustá-lo de maneira retroativa para validá-lo, o TDD determina que os testes sejam escritos antes e que as adaptações sejam, só depois, aplicadas ao código até que o projeto atenda aos requisitos do teste já definido.&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%2F7ntnlk2cvy9zewpx5i0m.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%2F7ntnlk2cvy9zewpx5i0m.png" alt=" " width="529" height="527"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A maioria dos programadores não escreve códigos utilizando o Desenvolvimento Orientado a Testes, mas deveria. O desenvolvimento orientado a testes cria um código melhor e menos propenso a falhas. Por isso, esperamos que tenha entendido a filosofia do TDD com este texto e a incorpore nas suas práticas de desenvolvimento.&lt;/p&gt;

&lt;p&gt;Estou muito animado para compartilhar com vocês meu mais recente projeto de código aberto no Github onde aplico o TDD e S.O.L.I.D! O projeto é uma api rest simples, mas poderosa, que pode ajudá-lo a embarcar no desenvolvimento orientado a testes e aumentar sua produtividade. O melhor de tudo é que você pode acessar e contribuir para o projeto gratuitamente no Github!&lt;/p&gt;

&lt;p&gt;Link do projecto: &lt;a href="https://github.com/dedaldinodev4/backend-nodejs-prisma-solid" rel="noopener noreferrer"&gt;Meu Projecto&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;O Github é uma plataforma incrível para desenvolvedores compartilharem seus projetos e colaborarem uns com os outros. É uma comunidade de desenvolvedores dedicados que estão sempre procurando maneiras de melhorar seus projetos e ajudar os outros.&lt;/p&gt;

&lt;p&gt;Não perca a chance de conferir meu projeto no Github! Visite o link acima e experimente por si mesmo. Compartilhe suas ideias e feedback nos comentários abaixo.&lt;/p&gt;

</description>
      <category>node</category>
      <category>jest</category>
      <category>tdd</category>
      <category>testing</category>
    </item>
    <item>
      <title>Clone google homepage with next.js</title>
      <dc:creator>Dedaldino Daniel</dc:creator>
      <pubDate>Thu, 20 Jan 2022 21:10:52 +0000</pubDate>
      <link>https://dev.to/dedaldinodev4/clone-google-homepage-with-nextjs-5e72</link>
      <guid>https://dev.to/dedaldinodev4/clone-google-homepage-with-nextjs-5e72</guid>
      <description>&lt;p&gt;Simple project where I cloned google using the next.js framework, besides being able to see it in my github repository, you can see the deployment of this application on the Vercel platform.&lt;br&gt;
 Following the links listed below:&lt;/p&gt;

&lt;p&gt;Github - &lt;a href="https://github.com/dedaldinodov4/google-clone-nextjs" rel="noopener noreferrer"&gt;https://github.com/dedaldinodov4/google-clone-nextjs&lt;/a&gt;&lt;br&gt;
Application Deployment - &lt;a href="https://google-clone-nextjs-delta.vercel.app/" rel="noopener noreferrer"&gt;https://google-clone-nextjs-delta.vercel.app/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Screenshot&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%2Fw74dw4mwlfm8oqwga5qr.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%2Fw74dw4mwlfm8oqwga5qr.png" alt=" " width="800" height="367"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>react</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Build RestFull API With Nodejs, Express and MongoDb!!</title>
      <dc:creator>Dedaldino Daniel</dc:creator>
      <pubDate>Thu, 19 Aug 2021 11:03:06 +0000</pubDate>
      <link>https://dev.to/dedaldinodev4/build-restfull-api-with-nodejs-express-and-mongodb-3152</link>
      <guid>https://dev.to/dedaldinodev4/build-restfull-api-with-nodejs-express-and-mongodb-3152</guid>
      <description>&lt;p&gt;This is a basic API skeleton written in JavaScript ES6+. Very useful to building a RESTful web APIs for your front-end platforms like Android, iOS or JavaScript frameworks (Angular, Reactjs, vuejs, etc).&lt;/p&gt;

&lt;p&gt;This project will run on NodeJs using MongoDB as database. I had tried to maintain the code structure easy as any beginner can also adopt the flow and start building an API. Project is open for suggestions, Bug reports and pull requests.&lt;/p&gt;

&lt;p&gt;Features&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Basic Authentication (Register/Login /loginRequired with hashed password)

&lt;ul&gt;
&lt;li&gt;JWT Tokens, make requests with a token after login with Authorization header with value Bearer yourToken where yourToken will be returned in Login response.&lt;/li&gt;
&lt;li&gt;Contact example with CRUD operations.
Validations added.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;Read More &lt;a href="https://github.com/dedaldinodev4/restful-api-nodejs-express-mongodb" rel="noopener noreferrer"&gt;https://github.com/dedaldinodev4/restful-api-nodejs-express-mongodb&lt;/a&gt;&lt;/p&gt;

</description>
      <category>node</category>
      <category>javascript</category>
      <category>mongodb</category>
      <category>babel</category>
    </item>
  </channel>
</rss>
