Skip to content

Reference implementation using automapper to convert a DTO to Entity

Notifications You must be signed in to change notification settings

Shiniray/nest-automapper-demo

 
 

Repository files navigation

NestJS Automapper Reference Implementation

Build

This implementation shows how Automapper can be used to convert between Data Transfer Objects (DTO) and other classes. Automapper allows for the code that performs the transformation to be abstracted away from the controllers and services.

Installation

Required:

npm install @automapper/{core, classes, nestjs}, class-transformer class-validator
npm install --save-dev @automapper/types

StackBlitz

If you are running this on StackBlitz (https://stackblitz.com/github/Tevpro/nest-automapper-demo) you will need to execute the following commands and access the URL below to test.

nest start

Next append /api to the end of the url inside the StackBlitz browser panel to access swagger.

Links

About

Reference implementation using automapper to convert a DTO to Entity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 92.5%
  • JavaScript 7.5%