{"id":18419515,"url":"https://github.com/tutods/nlw06-node","last_synced_at":"2026-04-12T13:40:45.469Z","repository":{"id":120506695,"uuid":"378867658","full_name":"tutods/nlw06-node","owner":"tutods","description":"Project developed on NLW#06 of NodeJS","archived":false,"fork":false,"pushed_at":"2024-05-06T01:23:59.000Z","size":386,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T11:50:34.757Z","etag":null,"topics":["eslint","express","node","nodejs","nodemon","prettier","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/tutods.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-21T08:56:01.000Z","updated_at":"2024-02-08T07:18:34.000Z","dependencies_parsed_at":"2024-02-08T08:26:53.643Z","dependency_job_id":"44114861-ff73-4eac-b927-7508caa7fd86","html_url":"https://github.com/tutods/nlw06-node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tutods/nlw06-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tutods%2Fnlw06-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tutods%2Fnlw06-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tutods%2Fnlw06-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tutods%2Fnlw06-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tutods","download_url":"https://codeload.github.com/tutods/nlw06-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tutods%2Fnlw06-node/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266602818,"owners_count":23954696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["eslint","express","node","nodejs","nodemon","prettier","typescript"],"created_at":"2024-11-06T04:17:17.366Z","updated_at":"2026-04-12T13:40:40.435Z","avatar_url":"https://github.com/tutods.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1 style=\"font-weight: 300; margin-top: 5px\"\u003eNLW#06 \u003cstrong\u003eNodeJS\u003c/strong\u003e\u003c/h1\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003eThis project is created from the \u003cstrong\u003eNLW#06\u003c/strong\u003e of \u003cstrong\u003eNodeJS\u003c/strong\u003e\u003c/div\u003e\n\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \t\u003ca href=\"#\"\u003e\n  \t\t\u003cimg src=\"https://img.shields.io/badge/NodeJS%20-%2320232a.svg?\u0026style=for-the-badge\u0026logo=node.js\u0026logoColor=339933\" alt=\"NodeJS\"/\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"#\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/badge/typescript%20-%23007ACC.svg?\u0026style=for-the-badge\u0026logo=typescript\u0026logoColor=white\" alt=\"TypeScript\" /\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"#\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/badge/Visual_Studio_Code-0078D4?style=for-the-badge\u0026logo=visual%20studio%20code\u0026logoColor=white\" alt=\"VS Code\" /\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://github.com/TutoDS/nlw06-node/stargazers\"\u003e\n    \t\u003cimg alt=\"Stargazers\" src=\"https://img.shields.io/github/stars/TutoDS/nlw06-node?style=for-the-badge\"\u003e\n\t\u003c/a\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n\u003ch2 style=\"font-weight:300\"\u003e📋 How to execute:\u003c/h2\u003e\n\nTo run this project follow commands below:\n\n1. `yarn install`;\n2. `yarn typeorm migration:run`;\n3. `yarn dev`: this run the development server;\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n\u003ch2 style=\"font-weight:300\"\u003e💬 Changes:\u003c/h2\u003e\n\n-   I use **Nodemon** with **TS-Node** instead **TS-Node-Dev**;\n-   Add **ESLint** configuration (`.eslintrc`) and add hook to run on `git push`;\n-   Custom folder structure;\n-   Use one controller for all **CRUD** services (`getAll`, `getOne`, `create`, `update` and `delete`);\n-   Use **JOI** to validate parameters and body of requests;\n    -   I create 3 middlewares to validade the body, query parameters or url parameters;\n-   Set **Babel** to build;\n-   Use `classToClass` (form `class-transformer` package) to hide password on result of requests;\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n\u003ch2 style=\"font-weight:300\"\u003eHow to fix \u003cstrong\u003eHusky\u003c/strong\u003e to run hooks:\u003c/h2\u003e\n\nIn `package.json` add on scripts:\n\n```json\n\"postinstall\": \"husky install\",\n```\n\nAfter that run on your terminal:\n\n-   **With Yarn:**\n    -   `yarn husky add .husky/pre-push \"yarn lint\"`\n    -   `yarn husky add .husky/pre-commit \"yarn lint-staged\"`\n-   **With NPM:**\n    -   `npx husky add .husky/pre-push \"npm run lint`\n    -   `npx husky add .husky/pre-commit \"npm lint-staged`\n\n\u003cbr /\u003e\u003cbr /\u003e\n\n\u003cdiv align=\"right\" style=\"margin-top: 50px\"\u003e\n\u003ch3 style=\"font-weight: 300\"\u003e\n🧑🏻‍💻 About Me\n\u003c/h3\u003e\n\n\u003ca href=\"https://github.com/TutoDS\" alt=\"TutoDS\"\u003e\n\u003cimg src=\"https://github.com/tutods.png\" alt=\"Daniel Sousa @TutoDS\" width=\"100px\" style=\"border-radius: 100%\"\u003e\n\u003cbr /\u003e\n \u003csub\u003e\u003cb\u003eDaniel Sousa @TutoDS\u003c/b\u003e\u003c/sub\u003e\n\u003c/a\u003e\n\n\u003cdiv style=\"margin: 20px 0\" /\u003e\n\n\u003ca href=\"https://github.com/TutoDS\"\u003e\n      \u003cimg alt=\"Github Badge\" src=\"https://img.shields.io/badge/-Github-1E4174?style=for-the-badge\u0026logo=Github\u0026logoColor=white\u0026link=https://github.com/solrachix\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.linkedin.com/in/daniel-sousa-tutods/\"\u003e\n      \u003cimg alt=\"Linkedin\" src=\"https://img.shields.io/badge/Linkedin-1E4174?style=for-the-badge\u0026logo=Linkedin\u0026logoColor=white\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://twitter.com/tutods/\"\u003e\n      \u003cimg alt=\"Twitter\" src=\"https://img.shields.io/badge/Twitter-1E4174?style=for-the-badge\u0026logo=twitter\u0026logoColor=white\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://facebook.com/tutods2014\"\u003e\n      \u003cimg alt=\"Facebook\" src=\"https://img.shields.io/badge/Facebook-1E4174?style=for-the-badge\u0026logo=facebook\u0026logoColor=white\" /\u003e\n\u003c/a\u003e\n\u003cbr /\u003e\n\n\u003ca href=\"https://youtube.com/tutods2014\"\u003e\n      \u003cimg alt=\"YouTube\" src=\"https://img.shields.io/badge/YouTube-1E4174?style=for-the-badge\u0026logo=youtube\u0026logoColor=white\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://instagram.com/tutods2014\"\u003e\n      \u003cimg alt=\"Instagram\" src=\"https://img.shields.io/badge/Instagram-1E4174?style=for-the-badge\u0026logo=Instagram\u0026logoColor=white\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://gitlab.com/jdaniel.asousa\"\u003e\n      \u003cimg alt=\"GitLab\" src=\"https://img.shields.io/badge/GitLab-1E4174?style=for-the-badge\u0026logo=GitLab\u0026logoColor=white\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://app.rocketseat.com.br/me/tutods14\"\u003e\n      \u003cimg alt=\"Rocketseat\" src=\"https://img.shields.io/badge/Rocketseat-1E4174?style=for-the-badge\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAALVBMVEVHcExxWsF0XMJzXMJxWcFsUsD///9jRrzY0u6Xh9Gsn9n39fyMecy0qd2bjNJWBT0WAAAABHRSTlMA2Do606wF2QAAAGlJREFUGJVdj1cWwCAIBLEsRU3uf9xobDH8+GZwUYi8i6ucJwrxKE+7D0G9Q4vlYqtmCSjndr4CgCgzlyFgfKfKCVO0LrPKjmiqMxGXkJwNnXskqWG+1oSM+BSwD8f29YLNjvx/OQrn+g99oQSoNmt3PgAAAABJRU5ErkJggg==\" /\u003e\n\u003c/a\u003e\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftutods%2Fnlw06-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftutods%2Fnlw06-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftutods%2Fnlw06-node/lists"}