Skip to content

devDudu-21/nestAPI-clean-arch

Repository files navigation

API Node.js using NestJS, Typescript and CleanArchiteture

typescript node nest jest prisma

Description

This practical project involves the creation of a Restful API using Node.js, NestJS, and TypeScript, oriented towards automated testing (unit, integration, and end-to-end tests), applying concepts of Domain Driven Design (DDD), Clean Architecture, Design Patterns, and SOLID principles.

The project consists of a user module with: entity, data validation, repositories, use cases, CRUD functionality, pagination of data returned in lists, JWT authentication, and automated tests within an architecture based on DDD and Clean Architecture concepts.

Installation

Clone the repository into your development environment.

 git clone https://github.com/devDudu-21/nestAPI-clean-arch.git

Install the dependencies

 npm install

Running

with env development

# prisma generate
$ npm run generate:prisma
# dev mode
$ npm run start:dev

with production mode

$ npm run build
# production mode
$ npm run start:prod

Automated Testing

# unit tests
$ npm run test

# integration tests 
$ npm run test:int

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Support

This project was developed from the advanced Node.js course of Aluízio Alves, with the support of reading the book "Clean Architecture: the Craftsman's Guide to Software Structure and Design (Robert C. Martin)".

Social media

Linkedin

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages