nestjs-clean-example

Clean Architecture Example using NestJS on Fastify

MIT License

Stars
6

nestjs-clean-example

Description

Example Application Interface using NestJS framework in TypeScript

This example showcases Repository Pattern in Hexagonal Architecture (also known as Clean Architecture). Here we have two Entities - Books and Authors, whose relationships have been exploited to create CRUD endpoint in REST under OpenAPI standard.

Installation

  • Install all the project dependency using Yarn:

    $ yarn
    
  • Run the application from command prompt:

    $ yarn start
    

Testing

  • Run the following command to initiate Unit test:
    $ yarn test
    
  • Run the following command to initiate E2E test:
    $ yarn test:e2e
    

License

© MIT License