Thanks to visit codestin.com
Credit goes to github.com

Skip to content

An API to register and validate CPFs with 94.4 of coverage

Notifications You must be signed in to change notification settings

erickmarx/CPF-API

Repository files navigation

API-CPF

API para controle de CPFs com 94.4% de test coverage

Installation

# install dependencies
$ pnpm install

Running the app

# development
$ pnpm run start

# watch mode
$ pnpm run start:dev

Test

# unit tests
$ pnpm run test

# test coverage
$ pnpm run test:cov

Running app on container

# generate container build
$ docker build . -t apicpf

# execute and expose API in port 3000
$ docker run --rm -it -p 3000:3000 apicpf

libs

Prisma

I used Prisma for the ease of integration with typescript and also for the good organization of the code due to the schema file.

NestJs

NestJS was used because it has great integration with typescript, excellent documentation and encourages good practices.

Pnpm

It is faster than npm and has great storage efficiency.

About

An API to register and validate CPFs with 94.4 of coverage

Resources

Stars

Watchers

Forks