{"id":24409166,"url":"https://github.com/mk-milly02/calories-tracking-api","last_synced_at":"2025-07-21T10:05:33.326Z","repository":{"id":184306346,"uuid":"653231132","full_name":"mk-milly02/calories-tracking-api","owner":"mk-milly02","description":"This is a RESTful API built with .NET and PostgreSQL that allows users to track their daily calorie intake by recording meals.","archived":false,"fork":false,"pushed_at":"2023-09-16T18:59:42.000Z","size":535,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T12:18:47.095Z","etag":null,"topics":["api","dotnet","entity-framework-core","postgresql"],"latest_commit_sha":null,"homepage":"","language":"C#","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/mk-milly02.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2023-06-13T16:43:13.000Z","updated_at":"2024-12-27T07:10:08.000Z","dependencies_parsed_at":"2025-03-13T09:45:33.539Z","dependency_job_id":null,"html_url":"https://github.com/mk-milly02/calories-tracking-api","commit_stats":null,"previous_names":["mk-milly02/calories-api","mk-milly02/calories-tracking-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mk-milly02/calories-tracking-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mk-milly02%2Fcalories-tracking-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mk-milly02%2Fcalories-tracking-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mk-milly02%2Fcalories-tracking-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mk-milly02%2Fcalories-tracking-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mk-milly02","download_url":"https://codeload.github.com/mk-milly02/calories-tracking-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mk-milly02%2Fcalories-tracking-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266278376,"owners_count":23904041,"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","dotnet","entity-framework-core","postgresql"],"created_at":"2025-01-20T05:54:48.361Z","updated_at":"2025-07-21T10:05:33.304Z","avatar_url":"https://github.com/mk-milly02.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Calories Tracking API\n\n\u003e This is a RESTful API built with .NET and PostgreSQL that allows users to track their daily calorie intake by recording meals.\n\n## Features\n\n- Authentication with JWT\n- Basic user account operations including setting daily calorie limit\n- User and meal CRUD opeartions\n- Pagination and filtering where necessary\n\n## Database Model\n\nThe database includes tables that manage user-related data such as accounts, roles, authentication tokens, meals, etc.\n\n![image](docs/erd.png)\n\n## Frameworks and Libraries\n\nThe API uses the following libraries and frameworks to deliver various functionalities:\n\n- .NET 7\n- Entity Framework Core 7.0.10 (with PostgreSQL)\n\n## Configuration\n\nTo run the project, add configurations to `appsettings.json` in the presentation layer. For integration testing, add a `secret.json` file to the tests project with the necesaary configurations.\n\n```\n{\n    \"nutritionix-api\": {\n        \"application-id\": \"{provide-id}\",\n        \"application-key\": \"{provide-key}\"\n    },\n    \"Authentication\": {\n        \"Schemes\": {\n            \"Bearer\":\n            {\n                \"issuer\": \"calories-tracking-api\",\n                \"audience\": \"{audience}\",\n                \"secret-key\": \"{secret-key}\"\n            }\n        }\n    },\n    \"ConnectionStrings\": {\n        \"default\": \"Host=...;Username=...;Password=...;Database=...;\"\n    },\n    \"Identity\": {\n        \"Administrator\": {\n            \"FirstName\": \"John\",\n            \"LastName\": \"Snow\",\n            \"Username\": \"crow_lord\",\n            \"Email\": \"bastard@thewall.com\",\n            \"Password\": \"www.winT3rf3II.com\"\n        },\n        \"RegularUser\": {\n            \"FirstName\": \"Julius\",\n            \"LastName\": \"Pepperwood\",\n            \"Username\": \"julius.pepperwood\",\n            \"Email\": \"jp@theloft.com\",\n            \"Password\": \"Sweatyback1234!\"\n        },\n        \"UserManager\": {\n            \"FirstName\": \"Micheal\",\n            \"LastName\": \"Scott\",\n            \"Username\": \"mj.scott\",\n            \"Email\": \"manager@calories-tracker.com\",\n            \"Password\": \"ilOv3ho,y\"\n        }\n    }\n}\n```\n\n## API Documanetation\n\n`/swagger`\n\n![image](docs/endpoints.jpeg)\n\n### Contributing\n\nContributions are welcome! If you have any suggestions, bug reports, or feature requests , please open an issue or submit a pull request.\n\n### License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for details. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmk-milly02%2Fcalories-tracking-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmk-milly02%2Fcalories-tracking-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmk-milly02%2Fcalories-tracking-api/lists"}