{"id":18470240,"url":"https://github.com/caioagiani/nodejs-nlw4","last_synced_at":"2025-04-08T10:33:06.893Z","repository":{"id":37030474,"uuid":"343161045","full_name":"caioagiani/nodejs-nlw4","owner":"caioagiani","description":"API Rest | NextLevelWeek#4 - @rocketseat","archived":false,"fork":false,"pushed_at":"2024-11-19T18:24:26.000Z","size":67,"stargazers_count":6,"open_issues_count":11,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T11:42:05.283Z","etag":null,"topics":["api","docker","eslint","express","jest","nextlevelweek","nlw4","nodejs","postgresql","prettier","rocketseat","typescript"],"latest_commit_sha":null,"homepage":"http://nextlevelweek.com","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/caioagiani.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-02-28T17:01:21.000Z","updated_at":"2023-03-17T12:34:48.000Z","dependencies_parsed_at":"2023-01-20T10:49:40.383Z","dependency_job_id":"f078cc8a-c889-4e98-bb25-f43881ec2016","html_url":"https://github.com/caioagiani/nodejs-nlw4","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caioagiani%2Fnodejs-nlw4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caioagiani%2Fnodejs-nlw4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caioagiani%2Fnodejs-nlw4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caioagiani%2Fnodejs-nlw4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caioagiani","download_url":"https://codeload.github.com/caioagiani/nodejs-nlw4/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247824412,"owners_count":21002267,"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","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","docker","eslint","express","jest","nextlevelweek","nlw4","nodejs","postgresql","prettier","rocketseat","typescript"],"created_at":"2024-11-06T10:13:23.040Z","updated_at":"2025-04-08T10:33:05.977Z","avatar_url":"https://github.com/caioagiani.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"35%\" src=\".github/logo.svg\" alt=\"nextlevelweek\" title=\"nextlevelweek\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch3 align=\"center\"\u003eNLW#4 | Nodejs\u003c/h3\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n![languages-count](https://img.shields.io/github/languages/count/caioagiani/nodejs-nlw4)\n![languages-top](https://img.shields.io/github/languages/top/caioagiani/nodejs-nlw4)\n![repo-size](https://img.shields.io/github/repo-size/caioagiani/nodejs-nlw4)\n![last-commit](https://img.shields.io/github/last-commit/caioagiani/nodejs-nlw4)\n\n  \u003cp\u003eProject developed during the Nodejs trail in the 4th edition of Next Level Week provided by [Rocketseat].\u003c/p\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg align=\"center\" alt=\"\" title=\"preview\" src=\"screenshot.png\" width=\"80%\"\u003e\n\u003c/div\u003e\n\n## Technologies used\n\n![Express](https://img.shields.io/badge/-Express-000000?style=flat\u0026logo=express\u0026color=gray\u0026logoColor=000000)\n![TypeScript](https://img.shields.io/badge/-TypeScript-2F74C0?style=flat\u0026logo=typescript\u0026color=gray\u0026logoColor=2F74C0)\n![NodeJS](https://img.shields.io/badge/-NodeJS-3E863D?style=flat\u0026logo=node.js\u0026color=gray\u0026logoColor=3E863D)\n![PostgreSQL](https://img.shields.io/badge/-PostgreSQL-31648C?style=flat\u0026logo=postgresql\u0026color=gray\u0026logoColor=31648C)\n![Docker](https://img.shields.io/badge/-Docker-47b3f5?style=flat\u0026logo=docker\u0026color=gray\u0026logoColor=47b3f5)\n![TypeORM](https://img.shields.io/badge/-TypeORM-F9AB02?style=flat\u0026logo=typeorm\u0026color=gray\u0026logoColor=F9AB02)\n![Eslint](https://img.shields.io/badge/-Eslint-4930BD?style=flat\u0026logo=eslint\u0026color=gray\u0026logoColor=4930BD)\n![Prettier](https://img.shields.io/badge/-Prettier-F9AB02?style=flat\u0026logo=prettier\u0026color=gray\u0026logoColor=F9AB02)\n![jest](https://img.shields.io/badge/-jest-E0301E?style=flat\u0026logo=jest\u0026color=gray\u0026logoColor=E0301E)\n\n## Start application\n\n```bash\n# Clone this project\n$ git clone git@github.com:caioagiani/nodejs-nlw4.git\n\n# Open folder\n$ cd nodejs-nlw4\n\n# Install dependencies\n$ yarn install\n\n# Set up variable environments\n$ cp .env.example .env\n\n# Execution permission arrow in script\n$ sudo chmod +x src/scripts/database.sh\n\n# Start database postgress with docker\n$ yarn dev:db\n\n# Create database table\n$ yarn typeorm migration:run\n\n# Run application\n$ yarn dev\n\n# Run tests\n$ yarn dev:test\n```\n\n## Tests\n\n```javascript\ncaio-agiani in nlw4 on -\u003e master ❯ yarn dev:test\nyarn run v1.22.5\n$ NODE_ENV=test jest --setupFiles dotenv/config --detectOpenHandles --forceExit\n PASS  __tests__/Mail.test.ts (6.397 s)\n PASS  __tests__/Answer.test.ts\n PASS  __tests__/Nps.test.ts\n PASS  __tests__/Survey.test.ts\n PASS  __tests__/User.test.ts\n\nTest Suites: 5 passed, 5 total\nTests:       13 passed, 13 total\nSnapshots:   0 total\nTime:        13.429 s\nRan all test suites.\nDone in 15.43s.\n```\n\n## Contact\n\n- [LinkedIn](https://www.linkedin.com/in/caioagiani/)\n- caio.agiani14@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaioagiani%2Fnodejs-nlw4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaioagiani%2Fnodejs-nlw4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaioagiani%2Fnodejs-nlw4/lists"}