{"id":19641309,"url":"https://github.com/williamkoller/clean-ts-api","last_synced_at":"2026-03-05T03:34:07.987Z","repository":{"id":103285739,"uuid":"249574612","full_name":"williamkoller/clean-ts-api","owner":"williamkoller","description":"API em NodeJs usando Typescript, TDD, Clean Architecture, Design Patterns e SOLID principles","archived":false,"fork":false,"pushed_at":"2022-12-22T21:07:23.000Z","size":1329,"stargazers_count":46,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T11:53:21.006Z","etag":null,"topics":["clean-architecture","composite","design-patterns","mongodb","nodejs","solid","survey","tdd","typescript","typescript-generator"],"latest_commit_sha":null,"homepage":"https://clean-nodejs-api.herokuapp.com/api-docs/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/williamkoller.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-03-24T00:26:06.000Z","updated_at":"2025-03-11T00:54:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"b8f116b6-98db-4605-ad0a-796e50bac110","html_url":"https://github.com/williamkoller/clean-ts-api","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/williamkoller/clean-ts-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamkoller%2Fclean-ts-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamkoller%2Fclean-ts-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamkoller%2Fclean-ts-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamkoller%2Fclean-ts-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/williamkoller","download_url":"https://codeload.github.com/williamkoller/clean-ts-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamkoller%2Fclean-ts-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30108668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:32:43.378Z","status":"ssl_error","status_checked_at":"2026-03-05T03:32:22.667Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clean-architecture","composite","design-patterns","mongodb","nodejs","solid","survey","tdd","typescript","typescript-generator"],"created_at":"2024-11-11T14:08:47.673Z","updated_at":"2026-03-05T03:34:07.944Z","avatar_url":"https://github.com/williamkoller.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/williamkoller/clean-ts-api.svg?branch=master)](https://travis-ci.com/williamkoller/clean-ts-api)\n[![Coverage Status](https://coveralls.io/repos/github/williamkoller/clean-ts-api/badge.svg?branch=master)](https://coveralls.io/github/williamkoller/clean-ts-api?branch=master)\n[![Known Vulnerabilities](https://snyk.io/test/github/williamkoller/clean-ts-api/badge.svg)](https://snyk.io/test/github/williamkoller/clean-ts-api)\n[![GPLv3 License](https://img.shields.io/badge/License-GPL%20v3-yellow.svg)](https://opensource.org/licenses/)\n[![Open Source](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://opensource.org/)\n![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/williamkoller/clean-ts-api)\n[![time tracker](https://wakatime.com/badge/github/williamkoller/clean-ts-api.svg)](https://wakatime.com/badge/github/williamkoller/clean-ts-api)\n\n\n# **Clean Node API**\n\nEssa API faz parte do treinamento do professor Rodrigo Manguinho (Mango) na Udemy.\n\nO objetivo do treinamento é mostrar como criar uma API com uma arquitetura bem definida e desacoplada, utilizando TDD (programação orientada a testes) como metodologia de trabalho, Clean Architecture para fazer a distribuição de responsabilidades em camadas, sempre seguindo os princípios do SOLID e, sempre que possível, aplicando Design Patterns para resolver alguns problemas comuns.\n\n\u003e ## APIs previstas para esse treinamento\n\n1. [Cadastro](./requirements/signup.md)\n2. [Login](./requirements/login.md)\n3. [Criar enquete](./requirements/add-survey.md)\n4. [Listar enquetes](./requirements/load-surveys.md)\n5. [Responder enquete](./requirements/save-survey-result.md)\n6. [Resultado da enquete](./requirements/load-survey-result.md)\n\n\u003e ## Princípios\n\n* Single Responsibility Principle (SRP)\n* Open Closed Principle (OCP)\n* Liskov Substitution Principle (LSP)\n* Interface Segregation Principle (ISP)\n* Dependency Inversion Principle (DIP)\n* Don't Repeat Yourself (DRY)\n* You Aren't Gonna Need It (YAGNI)\n* Keep It Simple, Silly (KISS)\n* Composition Over Inheritance\n* Small Commits\n\n\u003e ## Design Patterns\n\n* Factory\n* Adapter\n* Composite\n* Decorator\n* Proxy\n* Dependency Injection\n* Abstract Server\n* Composition Root\n\n\u003e ## Metodologias e Designs\n\n* TDD\n* Clean Architecture\n* DDD\n* Conventional Commits\n* GitFlow\n* Modular Design\n* Dependency Diagrams\n* Use Cases\n* Continuous Integration\n* Continuous Delivery\n* Continuous Deployment\n\n\u003e ## Bibliotecas e Ferramentas\n\n* NPM\n* Typescript\n* Git\n* Docker\n* Jest\n* MongoDb\n* Travis CI\n* Coveralls\n* Bcrypt\n* JsonWebToken\n* Validator\n* Express\n* Supertest\n* Husky\n* Lint Staged\n* Eslint\n* Standard Javascript Style\n* Sucrase\n* Nodemon\n* Rimraf\n* In-Memory MongoDb Server\n* MockDate\n* Module-Alias\n\n\u003e ## Features do Node\n\n* Log de Erro\n* Segurança (Hashing, Encryption e Encoding)\n* CORS\n* Middlewares\n* Nível de Acesso nas Rotas (Admin, User e Anônimo)\n* Deploy no Heroku\n\n\u003e ## Features do Git\n\n* Alias\n* Log Personalizado\n* Branch\n* Reset\n* Amend\n* Tag\n* Stash\n* Rebase\n* Merge\n\n\u003e ## Features do Typescript\n\n* POO Avançado\n* Interface\n* TypeAlias\n* Utility Types\n* Modularização de Paths\n* Build\n* Deploy\n* Uso de Breakpoints\n\n\u003e ## Features de Testes\n\n* Testes Unitários\n* Testes de Integração\n* Cobertura de Testes\n* Mocks\n* Stubs\n* Spies","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliamkoller%2Fclean-ts-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilliamkoller%2Fclean-ts-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliamkoller%2Fclean-ts-api/lists"}