Skip to content

0xTheProDev/nestjs-clean-example

Repository files navigation

nestjs-clean-example

TypeScript NodeJS NestJS Fastify OpenAPI GraphQL ESLint Prettier Open Issues Closed Issues Open Pulls Closed Pulls Contributors Activity

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