{"id":23248524,"url":"https://github.com/raulpe7eira/valoriza","last_synced_at":"2026-04-13T00:33:19.734Z","repository":{"id":130731040,"uuid":"380457893","full_name":"raulpe7eira/valoriza","owner":"raulpe7eira","description":"nlw#6 - trilha nodejs from rocketseat by Rafael Camarda","archived":false,"fork":false,"pushed_at":"2024-02-18T23:49:54.000Z","size":92,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-12T07:23:58.615Z","etag":null,"topics":["jwt","learn","nlw","nlw-6-nodejs","nodejs","rocketseat","sqlite","typeorm","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":false,"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/raulpe7eira.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}},"created_at":"2021-06-26T08:56:45.000Z","updated_at":"2024-11-21T13:03:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"d752dafb-0d19-4082-8ce8-a6ea810278b6","html_url":"https://github.com/raulpe7eira/valoriza","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raulpe7eira%2Fvaloriza","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raulpe7eira%2Fvaloriza/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raulpe7eira%2Fvaloriza/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raulpe7eira%2Fvaloriza/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raulpe7eira","download_url":"https://codeload.github.com/raulpe7eira/valoriza/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419862,"owners_count":20936014,"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":["jwt","learn","nlw","nlw-6-nodejs","nodejs","rocketseat","sqlite","typeorm","typescript"],"created_at":"2024-12-19T08:14:08.509Z","updated_at":"2026-04-13T00:33:19.701Z","avatar_url":"https://github.com/raulpe7eira.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Valoriza API\n\nThis repository is the code corresponding to the [nlw#6 - trilha nodejs](https://nextlevelweek.com/) lab by Rafael Camarda.\n\n\u003e The project simulates an recognition among teammates management API that allows to register users, tags, compliments with authentication and retrieves some listings.\n\n## Gets dependencies, setups database and starts application\n\n```bash\ncd valoriza\nnpm install\nnpm run typeorm migration:run\nnpm run dev\n```\n\n## How to use?\n\n```bash\n# authenticates user\ncurl -X POST 'http://localhost:3000/login' \\\n-H 'Content-Type: application/json' \\\n-d '{\n    \"email\": \"raul@mail.com\",\n    \"password\": \"1234\"\n}'\n\n# creates user\ncurl -X POST 'http://localhost:3000/users' \\\n-H 'Content-Type: application/json' \\\n-d '{\n    \"name\": \"Raul Pereira\",\n    \"email\": \"raul@mail.com\",\n    \"password\": \"1234\",\n\t\"admin\": true\n}'\n\n# retrieves created users (\n#   replaces curly braces:\n#     {token} : authorization token\n# )\ncurl -X GET 'http://localhost:3000/users' \\\n-H 'Authorization: {token}'\n\n# retrieves received compliments by user (\n#   replaces curly braces:\n#     {token} : authorization token\n# )\ncurl -X GET 'http://localhost:3000/users/compliments/receive' \\\n-H 'Authorization: {token}'\n\n# retrieves sent compliments by user (\n#   replaces curly braces:\n#     {token} : authorization token\n# )\ncurl -X GET 'http://localhost:3000/users/compliments/send' \\\n-H 'Authorization: {token}'\n\n# creates tag (\n#   replaces curly braces:\n#     {token} : authorization token\n# )\ncurl -X POST 'http://localhost:3000/tags' \\\n-H 'Authorization: {token}' \\\n-H 'Content-Type: application/json' \\\n-d '{\n    \"name\": \"reviewer\"\n}'\n\n# retrieves created tags (\n#   replaces curly braces:\n#     {token} : authorization token\n# )\ncurl -X GET 'http://localhost:3000/tags' \\\n-H 'Authorization: {token}'\n\n# creates compliment (\n#   replaces curly braces:\n#     {token} : authorization token\n#     {tag_id} : tag identifier\n#     {user_id} : user identifier\n# )\ncurl -X POST 'http://localhost:3000/compliments' \\\n-H 'Authorization: {token}' \\\n-H 'Content-Type: application/json' \\\n-d '{\n    \"tag_id\": \"{tag_id}\",\n    \"user_receiver\": \"{user_id}\",\n    \"message\": \"champion \\o/\"\n}'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraulpe7eira%2Fvaloriza","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraulpe7eira%2Fvaloriza","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraulpe7eira%2Fvaloriza/lists"}