{"id":26902380,"url":"https://github.com/carloslonghi/api-dailydiet","last_synced_at":"2026-07-02T17:32:47.305Z","repository":{"id":224646209,"uuid":"763731968","full_name":"CarlosLonghi/API-DailyDiet","owner":"CarlosLonghi","description":"Desafio do curso de Node da Rocketseat. ","archived":false,"fork":false,"pushed_at":"2024-02-28T19:46:16.000Z","size":169,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T09:18:53.123Z","etag":null,"topics":["fastify","knexjs","nodejs","pg","sqlite3","supertest","vitest","zod"],"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/CarlosLonghi.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":"2024-02-26T20:24:53.000Z","updated_at":"2025-01-25T13:25:12.000Z","dependencies_parsed_at":"2025-04-01T09:18:55.030Z","dependency_job_id":"5ec55ad3-6c8f-4469-b1b7-6a1630c4c3bc","html_url":"https://github.com/CarlosLonghi/API-DailyDiet","commit_stats":null,"previous_names":["carloslonghi/dailydiet_api","carloslonghi/api-dailydiet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CarlosLonghi/API-DailyDiet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosLonghi%2FAPI-DailyDiet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosLonghi%2FAPI-DailyDiet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosLonghi%2FAPI-DailyDiet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosLonghi%2FAPI-DailyDiet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CarlosLonghi","download_url":"https://codeload.github.com/CarlosLonghi/API-DailyDiet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosLonghi%2FAPI-DailyDiet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275844216,"owners_count":25538990,"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-09-18T02:00:09.552Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["fastify","knexjs","nodejs","pg","sqlite3","supertest","vitest","zod"],"created_at":"2025-04-01T09:18:56.618Z","updated_at":"2025-09-18T22:31:35.961Z","avatar_url":"https://github.com/CarlosLonghi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Start\n- Instalação\n```bash\n  npm install\n```\n\n- Comando para execultar as migrações e criar o Banco de Dados.\n```bash\n  npm run knex -- migrate:latest\n```\n\n- Comando no Knex para criar uma nova tabela\n```bash\n  npm run knex -- migrate:make table_name\n```\n\n- Comando para execultar a API\n```bash\n  npm run dev\n```\n\n---\n\n# RF (Requisitos Funcionais)\n\n- [x] Deve ser possível criar um usuário\n- [x] Deve ser possível identificar o usuário entre as refeições\n- [x] Deve ser possível registrar uma refeição feita, com as seguintes informações:\n  \u003e *As refeições devem ser relacionadas a um usuário.*\n  - Nome\n  - Descrição\n  - Data e Hora\n  - Está dentro ou não da dieta\n- [x] Deve ser possível listar todas as refeições de um usuário\n- [x] Deve ser possível visualizar uma única refeição\n- [x] Deve ser possível editar uma refeição, podendo alterar todos os dados acima\n- [x] Deve ser possível apagar uma refeição\n- [x] Deve ser possível recuperar as métricas de um usuário\n  - [x] Quantidade total de refeições registradas\n  - [x] Quantidade total de refeições dentro da dieta\n  - [x] Quantidade total de refeições fora da dieta\n  - [x] Melhor sequência de refeições dentro da dieta\n\n\n# RN (Regra de Negócio)\n\n- [x] O usuário só pode visualizar, editar e apagar as refeições o qual ele criou\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarloslonghi%2Fapi-dailydiet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarloslonghi%2Fapi-dailydiet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarloslonghi%2Fapi-dailydiet/lists"}