{"id":15173992,"url":"https://github.com/lzhudson/daily-diet-api","last_synced_at":"2026-01-24T06:45:34.808Z","repository":{"id":250865230,"uuid":"835701688","full_name":"lzhudson/daily-diet-api","owner":"lzhudson","description":"The daily diet API is a project that consists of an API for controlling user meals.","archived":false,"fork":false,"pushed_at":"2024-07-31T13:02:24.000Z","size":112,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-30T14:55:49.403Z","etag":null,"topics":["api","api-client","api-rest","fastify","insomnia","knex","node","nodejs","sql","sqlite","typescript","zod"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lzhudson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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-07-30T11:12:19.000Z","updated_at":"2024-07-31T13:10:56.000Z","dependencies_parsed_at":"2024-07-31T16:19:11.445Z","dependency_job_id":null,"html_url":"https://github.com/lzhudson/daily-diet-api","commit_stats":null,"previous_names":["lzhudson/ignite-node-js-02-creating-api-rest-with-node-js-challenge","lzhudson/daily-diet-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lzhudson/daily-diet-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzhudson%2Fdaily-diet-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzhudson%2Fdaily-diet-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzhudson%2Fdaily-diet-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzhudson%2Fdaily-diet-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lzhudson","download_url":"https://codeload.github.com/lzhudson/daily-diet-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzhudson%2Fdaily-diet-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28717291,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T05:53:42.649Z","status":"ssl_error","status_checked_at":"2026-01-24T05:53:41.698Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","api-client","api-rest","fastify","insomnia","knex","node","nodejs","sql","sqlite","typescript","zod"],"created_at":"2024-09-27T11:22:42.056Z","updated_at":"2026-01-24T06:45:34.779Z","avatar_url":"https://github.com/lzhudson.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\".github/docs/images/logo.svg\" width=\"350\"/\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n[![Author](https://img.shields.io/badge/author-lzhudson-00B37E?style=flat-square)](https://github.com/lzhudson)\n[![Languages](https://img.shields.io/github/languages/count/lzhudson/daily-diet-api?color=%2300B37E\u0026style=flat-square)](#)\n[![Stars](https://img.shields.io/github/stars/lzhudson/daily-diet-api?color=00B37E\u0026style=flat-square)](https://github.com/lzhudson/daily-diet-api/stargazers)\n[![Forks](https://img.shields.io/github/forks/lzhudson/daily-diet-api?color=00B37E\u0026style=flat-square)](https://github.com/lzhudson/daily-diet-api/network/members)\n[![Contributors](https://img.shields.io/github/contributors/lzhudson/daily-diet-api?color=00B37E\u0026style=flat-square)](https://github.com/lzhudson/daily-diet-api/graphs/contributors)\n\n# :pushpin: Table of Contents\n* [Overview](#memo-overview)\n* [Features](#rocket-features)\n* [Installation](#construction_worker-installation)\n* [Testing](#test_tube-testing)\n* [Found a bug? Missing a specific feature?](#bug-issues)\n* [Contributing](#tada-contributing)\n* [License](#closed_book-license)\n\n# :memo: Overview\n\nThe daily diet API is an API developed for recording and controlling meals where the user can record their daily meals with name, description, date and time and also whether or not it is within their diet.\n\n# :rocket: Features\n\n* Create user\n* Identify each user's meals \n* Create, update, delete, list all and list exclusive meal(s) by id\n* Provide metrics for the number of meals, the number of meals within the diet, the number of meals outside the diet and the best sequence of meals within the diet.\n* e2e tests\n\n# :construction_worker: Installation\n\n**You need to install [Node.js](https://nodejs.org/en/download/) and [Yarn](https://yarnpkg.com/) first, then in order to clone the project via HTTPS, run this command:**\n\n```\ngit clone https://github.com/lzhudson/daily-diet-api.git\n```\n\nSSH URLs provide access to a Git repository via SSH, a secure protocol. If you have a SSH key registered in your Github account, clone the project using this command:\n\n```\ngit clone git@github.com:lzhudson/daily-diet-api.git\n```\n\n**Create the .env file with following content:**\n\n```\nNODE_ENV=development\nDATABASE_CLIENT=sqlite3\nDATABASE_URL=\"./db/app.db\"\n```\n\n**Install dependencies**\n\n```\nnpm i install\n```\n\n**Start development server**\n\n```\nnpm run dev\n```\n\n**The routes to test the API are available on the button below:**\n\n \u003ca href=\".github/docs/insomnia/daily-diet-api.json\" download\u003eClick to Download Insomnia file API\u003c/a\u003e\n\n\n# :test_tube: Testing\n\n**Create the .env.test file with following content:**\n\n```\nNODE_ENV=test\nDATABASE_CLIENT=sqlite3\nDATABASE_URL=\"./db/test.db\"\n```\n\n**Running tests**\n\n```\nnpm run test:all\n```\n\n# :bug: Issues\n\nFeel free to **file a new issue** with a respective title and description on the [Daily Diet API](https://github.com/lzhudson/daily-diet-api/issues) repository. If you already found a solution to your problem, **I would love to review your pull request**! Have a look at our [contribution guidelines](https://github.com/lzhudson/daily-diet-api/blob/main/CONTRIBUTING.md) to find out about the coding standards.\n\n# :tada: Contributing\n\nCheck out the [contributing](https://github.com/lzhudson/daily-diet-api/blob/main/CONTRIBUTING.md) page to see the best places to file issues, start discussions and begin contributing.\n\n# :closed_book: License\n\nReleased in 2024\nThis project is under the [MIT license](https://github.com/lzhudson/daily-diet-api/main/LICENSE).\n\nDesigned by [Rockeseat](https://github.com/Rocketseat) and developed by [Hudson Holanda](https://github.com/lzhudson) 🖤🚀","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flzhudson%2Fdaily-diet-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flzhudson%2Fdaily-diet-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flzhudson%2Fdaily-diet-api/lists"}