{"id":21905860,"url":"https://github.com/jcmdsbr/exemplo-conectados-feedbacks","last_synced_at":"2026-04-13T10:31:42.526Z","repository":{"id":117404231,"uuid":"375494546","full_name":"jcmdsbr/exemplo-conectados-feedbacks","owner":"jcmdsbr","description":"Exemplo de projetos nodes com typescript passado no curso ministrado para 5by5 Soluções em Sitemas","archived":false,"fork":false,"pushed_at":"2021-06-23T22:13:07.000Z","size":157,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T07:19:29.197Z","etag":null,"topics":["nodejs","typescript"],"latest_commit_sha":null,"homepage":"","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/jcmdsbr.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}},"created_at":"2021-06-09T21:33:06.000Z","updated_at":"2021-12-07T14:02:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"88770998-1c4e-49c8-87bf-50381bb168c1","html_url":"https://github.com/jcmdsbr/exemplo-conectados-feedbacks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jcmdsbr/exemplo-conectados-feedbacks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcmdsbr%2Fexemplo-conectados-feedbacks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcmdsbr%2Fexemplo-conectados-feedbacks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcmdsbr%2Fexemplo-conectados-feedbacks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcmdsbr%2Fexemplo-conectados-feedbacks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcmdsbr","download_url":"https://codeload.github.com/jcmdsbr/exemplo-conectados-feedbacks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcmdsbr%2Fexemplo-conectados-feedbacks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31748954,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","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":["nodejs","typescript"],"created_at":"2024-11-28T16:38:42.435Z","updated_at":"2026-04-13T10:31:42.509Z","avatar_url":"https://github.com/jcmdsbr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Criando um projeto :sunglasses:\n\n- Criando diretório onde vai ficar nossa API que vou chamar de sample\n- Dentro dessa pasta vamos rodar alguns comandos no terminal\n\n```sh\nnpm init -y\nnpm i express\nnpm i joi\nnpm i uuidv4\nnpm i typescript ts-node-dev -D\nnpm i @types/express -D\nnpm i @types/uuidv4 -D\nnpm i @types/joi -D\nnpm i tsconfig-paths -D\nnpm i eslint -D\n./node_modules/eslint/bin/eslint.js --init\nnpm i @babel/cli @babel/core @babel/node @babel/preset-env @babel/preset-typescript babel-plugin-module-resolver -D\n```\n\n## Configurando o tsconfig :heavy_check_mark:\n\n```json\n - shortcuts: ctrl + shift + l\n{\n  \"compilerOptions\": {\n    \"target\": \"ES2020\",                                \n    \"module\": \"commonjs\",                           \n    \"esModuleInterop\": true,                        \n    \"skipLibCheck\": true,\n    \"allowJs\": true,\n    \"sourceMap\": false,\n    \"removeComments\": true,\n    \"strict\": false,\n    \"outDir\": \"./dist\",\n    \"rootDir\": \"./src\",\n    \"typeRoots\": [\"./node_modules/@types\", \"./src/@types\"],\n    \"resolveJsonModule\": true,  \n    \"forceConsistentCasingInFileNames\": true,\n    \"emitDecoratorMetadata\": true,\n    \"experimentalDecorators\": true,\n    \"baseUrl\": \".\",\n    \"paths\": {\n      \"@useCases/*\": [\"./src/useCases/*\"],\n      \"@entities/*\": [\"./src/entities/*\"],\n      \"@repositories/*\": [\"./src/repositories/*\"]\n    }        \n  },\n  \"include\": [\n    \"src/**/*.ts\"\n  ],\n  \"exclude\": [\n    \"node_modules\"\n  ]\n}\n```\n\n## Configurando debbuger :heavy_check_mark:\n\n- launch.json\n\n```json\n{\n  \"version\": \"0.2.0\",\n  \"configurations\": [\n    {\n      \"type\": \"node\",\n      \"request\": \"attach\",\n      \"name\": \"Attach to npm run start:debug\",\n      \"protocol\": \"inspector\",\n      \"port\": 9229,\n      \"restart\": true,\n      \"cwd\": \"${workspaceRoot}\"\n    }\n  ]\n}\n\n```\n\n- package.json :heavy_check_mark:\n\n```json\n{\n  \"name\": \"sample\",\n  \"version\": \"1.0.0\",\n  \"description\": \"Sample node api in typescript\",\n  \"main\": \"src/server.js\",\n  \"scripts\": {\n    \"start\": \"tsnd --transpile-only --respawn --ignore node_modules src/server.ts\",\n    \"start:debug\": \"tsnd --inspect --transpile-only --respawn src/server.ts\",\n    \"build\": \"rm -rf dist \u0026\u0026 tsc\"\n  },\n  \"keywords\": [\"API\", \"TSC\", \"TSND\"],\n  \"author\": \"Jean Carlos Moreira da Silva\",\n  \"license\": \"ISC\",\n  \"dependencies\": {\n    \"express\": \"^4.17.1\",\n    \"joi\": \"^17.4.0\"\n  },\n  \"devDependencies\": {\n    \"@types/express\": \"^4.17.11\",\n    \"@types/joi\": \"^17.2.3\",\n    \"@types/uuidv4\": \"^5.0.0\",\n    \"ts-node-dev\": \"^1.1.6\",\n    \"typescript\": \"^4.2.4\"\n  }\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcmdsbr%2Fexemplo-conectados-feedbacks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcmdsbr%2Fexemplo-conectados-feedbacks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcmdsbr%2Fexemplo-conectados-feedbacks/lists"}