{"id":19844880,"url":"https://github.com/lucasrmagalhaes/api_nps_nlw4-nodejs","last_synced_at":"2026-04-06T21:34:41.535Z","repository":{"id":40748467,"uuid":"343149942","full_name":"lucasrmagalhaes/api_nps_nlw4-nodejs","owner":"lucasrmagalhaes","description":"API - NPS desenvolvida durante o evento gratuito da Rocketseat - NLW#4.","archived":false,"fork":false,"pushed_at":"2023-01-24T04:55:27.000Z","size":20270,"stargazers_count":2,"open_issues_count":12,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-19T07:29:48.706Z","etag":null,"topics":["api","back-end","ethereum","express","express-async-errors","handlebars-js","jest","nlw-4","nodejs","nodemailer","nps","rockeatseat","sqllite3","supertest","survey","typeorm","typescript","visual-studio-code","yarn","yup"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucasrmagalhaes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-28T16:15:01.000Z","updated_at":"2024-08-26T01:57:07.000Z","dependencies_parsed_at":"2023-02-13T17:46:28.833Z","dependency_job_id":null,"html_url":"https://github.com/lucasrmagalhaes/api_nps_nlw4-nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lucasrmagalhaes/api_nps_nlw4-nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasrmagalhaes%2Fapi_nps_nlw4-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasrmagalhaes%2Fapi_nps_nlw4-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasrmagalhaes%2Fapi_nps_nlw4-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasrmagalhaes%2Fapi_nps_nlw4-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasrmagalhaes","download_url":"https://codeload.github.com/lucasrmagalhaes/api_nps_nlw4-nodejs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasrmagalhaes%2Fapi_nps_nlw4-nodejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31491097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T17:22:55.647Z","status":"ssl_error","status_checked_at":"2026-04-06T17:22:54.741Z","response_time":112,"last_error":"SSL_read: 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":["api","back-end","ethereum","express","express-async-errors","handlebars-js","jest","nlw-4","nodejs","nodemailer","nps","rockeatseat","sqllite3","supertest","survey","typeorm","typescript","visual-studio-code","yarn","yup"],"created_at":"2024-11-12T13:05:51.596Z","updated_at":"2026-04-06T21:34:41.517Z","avatar_url":"https://github.com/lucasrmagalhaes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"#\"\u003e\n    \u003cimg \n         src=\"https://github.com/lucasrmagalhaes/API_NPS_NLW4-Node.js/blob/main/api/src/assets/img/project.jpg\" \n         alt=\"API NPS\" \n    /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003chr /\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cstrong\u003eSobre\u003c/strong\u003e\u003c/summary\u003e\n  \u003cbr /\u003e\n  \u003cp align=\"justify\"\u003e\n    \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;Este projeto é uma aplicação back-end que consiste no cálculo do NPS da empresa. Nele, cadastramos usuários, cadastramos pesquisas, enviamos e-mail aos usuários para responder a pesquisas de satisfação e com isso podemos realizar o cálculo do NPS.\n    \u003cbr /\u003e \u003cbr /\u003e\n    \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;O Net Promoter Score é um tipo de métrica criada para medir a satisfação do cliente, como: \"De 0 a 10, quanto você recomenda nossa empresa?\"\n    \u003cbr /\u003e \u003cbr /\u003e\n    \u003cstrong\u003eDia 1 -\u003c/strong\u003e Fundamentos do Node.js\n    \u003cbr /\u003e\n    \u003cstrong\u003eDia 2 -\u003c/strong\u003e Iniciando com o Banco de Dados\n    \u003cbr /\u003e\n    \u003cstrong\u003eDia 3 -\u003c/strong\u003e Testando a Nossa Aplicação\n    \u003cbr /\u003e\n    \u003cstrong\u003eDia 4 -\u003c/strong\u003e Envio de E-mail\n    \u003cbr /\u003e\n    \u003cstrong\u003eDia 5 - \u003c/strong\u003e Finalizando Nossa API com Validações\n  \u003c/p\u003e\n\u003c/details\u003e\n\n\u003chr /\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cstrong\u003eFontes\u003c/strong\u003e\u003c/summary\u003e\n  \u003cbr /\u003e\n  \u003cp\u003e\u003cstrong\u003eFontes utilizadas no projeto:\u003c/strong\u003e\u003c/p\u003e\n \n  - [yup](https://github.com/jquense/yup)\n  - [handlebarsjs](https://handlebarsjs.com/)\n  - [Ethereal](https://ethereal.email/)\n  - [Nodemailer](https://nodemailer.com/about/)\n  - [supertest](https://www.npmjs.com/package/supertest)\n  - [Beekeeper](https://www.beekeeperstudio.io/)\n  - [TypeORM](https://typeorm.io/#/)\n  - [Knex.js](http://knexjs.org/)\n  - [Yarn](https://yarnpkg.com/getting-started/install)\n  \n\u003c/details\u003e\n\n\u003chr /\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003e\u003cstrong\u003eComandos\u003c/strong\u003e\u003c/summary\u003e\n    \u003cbr /\u003e\n    \u003cp\u003e\u003cstrong\u003eComandos utilizados durante o desenvolvimento da API:\u003c/strong\u003e\u003c/p\u003e\n    \u003cbr /\u003e\n    \u003cpre\u003eyarn init\u003c/pre\u003e\n    \u003cpre\u003eyarn add express\u003c/pre\u003e\n    \u003cpre\u003eyarn add @types/express -D\u003c/pre\u003e\n    \u003cpre\u003eyarn add typescript -D\u003c/pre\u003e\n    \u003cpre\u003eyarn tsc --init\u003c/pre\u003e\n    \u003cpre\u003eyarn add ts-node-dev -D\u003c/pre\u003e\n    \u003cpre\u003eyarn add typeorm reflect-metadata\u003c/pre\u003e\n    \u003cpre\u003eyarn add sqlite3\u003c/pre\u003e\n    \u003cpre\u003eyarn dev\u003c/pre\u003e\n    \u003cpre\u003eyarn typeorm\u003c/pre\u003e\n    \u003cpre\u003enpx typeorm migration:create -n CreateUsers\u003c/pre\u003e\n    \u003cpre\u003eyarn typeorm migration:run\u003c/pre\u003e\n    \u003cpre\u003eyarn typeorm migration:revert\u003c/pre\u003e\n    \u003cpre\u003eyarn add uuid\u003c/pre\u003e\n    \u003cpre\u003eyarn add @types/uuid -D\u003c/pre\u003e\n    \u003cpre\u003enpx typeorm migration:create -n CreateSurveys\u003c/pre\u003e\n    \u003cpre\u003eyarn add jest @types/jest -D\u003c/pre\u003e\n    \u003cpre\u003enpx jest --init\u003c/pre\u003e\n    \u003cpre\u003eyarn add ts-jest -D\u003c/pre\u003e\n    \u003cpre\u003enpm i --save-dev @types/jest\u003c/pre\u003e\n    \u003cpre\u003enpm i jest -D\u003c/pre\u003e\n    \u003cpre\u003eyarn add cross-env -D\u003c/pre\u003e\n    \u003cpre\u003enpm install supertest @types/supertest -D\u003c/pre\u003e\n    \u003cpre\u003enpx typeorm migration:create -n CreateSurveysUsers\u003c/pre\u003e\n    \u003cpre\u003enpm i nodemailer\u003c/pre\u003e\n    \u003cpre\u003enpm install handlebars\u003c/pre\u003e\n    \u003cpre\u003eyarn add yup\u003c/pre\u003e\n    \u003cpre\u003eyarn add express-async-errors\u003c/pre\u003e\n\u003c/details\u003e\n\n\u003chr /\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003e\u003cstrong\u003eAtalhos\u003c/strong\u003e\u003c/summary\u003e\n    \u003cbr /\u003e\n    \u003cp align=\"left\"\u003e\n        \u003cstrong\u003eAtalhos interessantes no Visual Studio Code:\u003c/strong\u003e\n        \u003cbr /\u003e\n        \u003cul\u003e\n            \u003cli\u003eRemovendo os imports: Alt + Shift + O\u003c/li\u003e\n            \u003cli\u003eRenomear mais de uma linha: Ctrl + Shift + L\u003c/li\u003e\n        \u003c/ul\u003e\n    \u003c/p\u003e\n\u003c/details\u003e\n\n\u003chr /\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003e\u003cstrong\u003eTestes\u003c/strong\u003e\u003c/summary\u003e\n    \u003cbr /\u003e\n    \u003cp align=\"left\"\u003e\n      \u003cstrong\u003eTestes de Integração\u003c/strong\u003e \n      \u003cbr /\u003e\n      -\u003e routes -\u003e controller -\u003e respository \n      \u003cbr /\u003e\n      \u003c- repository \u003c- controller \u003c- response\n    \u003c/p\u003e\n\u003c/details\u003e\n\n\u003chr /\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003e\u003cstrong\u003eExtensões\u003c/strong\u003e\u003c/summary\u003e\n    \u003cbr /\u003e\n    \u003cp\u003e\u003cstrong\u003eExtensões recomendadas:\u003c/strong\u003e\u003c/p\u003e\n    \u003col\u003e\n        \u003cli\u003eOmni\u003c/li\u003e\n        \u003cli\u003eMaterial Icon Theme\u003c/li\u003e\n        \u003cli\u003eCode Spell Checker\u003c/li\u003e\n        \u003cli\u003eBracket Pair Colorizer\u003c/li\u003e\n    \u003c/ol\u003e\n\u003c/details\u003e\n\n\u003chr /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasrmagalhaes%2Fapi_nps_nlw4-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasrmagalhaes%2Fapi_nps_nlw4-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasrmagalhaes%2Fapi_nps_nlw4-nodejs/lists"}