{"id":16513594,"url":"https://github.com/levysantiago/daily-diet-api","last_synced_at":"2026-05-01T20:32:11.745Z","repository":{"id":192159900,"uuid":"679924329","full_name":"levysantiago/daily-diet-api","owner":"levysantiago","description":"Manage your diet with the Daily Diet API. ","archived":false,"fork":false,"pushed_at":"2023-09-02T20:15:53.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T10:24:04.846Z","etag":null,"topics":["fastify","knex","restful-api","sqlite","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/levysantiago.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}},"created_at":"2023-08-17T23:59:29.000Z","updated_at":"2023-09-02T00:02:46.000Z","dependencies_parsed_at":"2023-09-03T02:42:16.000Z","dependency_job_id":"4444b042-79bc-4b90-923c-8666faccfdb1","html_url":"https://github.com/levysantiago/daily-diet-api","commit_stats":null,"previous_names":["levysantiago/daily-diet-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/levysantiago/daily-diet-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levysantiago%2Fdaily-diet-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levysantiago%2Fdaily-diet-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levysantiago%2Fdaily-diet-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levysantiago%2Fdaily-diet-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/levysantiago","download_url":"https://codeload.github.com/levysantiago/daily-diet-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levysantiago%2Fdaily-diet-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32512662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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","knex","restful-api","sqlite","typescript"],"created_at":"2024-10-11T16:09:27.078Z","updated_at":"2026-05-01T20:32:11.724Z","avatar_url":"https://github.com/levysantiago.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Daily Diet\n[![Node.js CI](https://github.com/levysantiago/daily-diet-api/actions/workflows/node.js.yml/badge.svg)](https://github.com/levysantiago/daily-diet-api/actions/workflows/node.js.yml)\n\nEsta aplicação é um dos desafios da trilha Ignite da plataforma da Rocketseat. Aqui utilizo o Knex como ORM, SQLite como banco de dados e o Fastify como framework backend.\n\nEste é o [link do Figma](https://www.figma.com/community/file/1218573349379609244/Daily-Diet-%E2%80%A2-Desafio-React-Native) do desing de como seria a aplicação frontend.\n\n## Getting started\n\n### Instalando Dependências\n\n```bash\nnpm i\n```\n\nou\n\n\n```bash\nyarn\n```\n\n### Rodando migrations\n\n```bash\nnpx knex migrate:latest\n```\n\n### Iniciando aplicação\n\n```bash\nnpm run dev\n```\n\nou\n\n```bash\nyarn dev\n```\n\n### Rodando testes\n\n```bash\nyarn test\n```\n\nou\n\n```bash\nnpm run test\n```\n\n### Regras da aplicação\n\n- [x] Deve ser possível criar um usuário\n\n- [x] Deve ser possível identificar o usuário entre as requisições\n\n- [x] Deve ser possível registrar uma refeição feita, com as seguintes informações:\n    \n  *As refeições devem ser relacionadas a um usuário.*\n  \n  - Nome\n  - Descrição\n  - Data e Hora\n  - Está dentro ou não da dieta\n  \n- [x] Deve ser possível editar uma refeição, podendo alterar todos os dados acima\n\n- [x] Deve ser possível apagar uma refeição\n\n- [x] Deve ser possível listar todas as refeições de um usuário\n\n- [x] Deve ser possível visualizar uma única refeição\n\n- [x] Deve ser possível recuperar as métricas de um usuário\n\n  - [x] Quantidade total de refeições registradas\n\n  - [x] Quantidade total de refeições dentro da dieta\n\n  - [x] Quantidade total de refeições fora da dieta\n\n  - [x] Melhor sequência de refeições dentro da dieta\n\n- [x] O usuário só pode visualizar, editar e apagar as refeições o qual ele criou","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevysantiago%2Fdaily-diet-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevysantiago%2Fdaily-diet-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevysantiago%2Fdaily-diet-api/lists"}