{"id":21474678,"url":"https://github.com/yagoluiz/market-api","last_synced_at":"2026-04-12T10:40:32.827Z","repository":{"id":148120678,"uuid":"393774758","full_name":"yagoluiz/market-api","owner":"yagoluiz","description":"Market API using .NET 5","archived":false,"fork":false,"pushed_at":"2022-05-15T18:17:15.000Z","size":262,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-23T16:53:23.097Z","etag":null,"topics":["docker","docker-compose","dotnet","k8s"],"latest_commit_sha":null,"homepage":"","language":"C#","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/yagoluiz.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":"2021-08-07T19:31:03.000Z","updated_at":"2022-02-26T17:25:49.000Z","dependencies_parsed_at":"2023-05-19T05:00:19.195Z","dependency_job_id":null,"html_url":"https://github.com/yagoluiz/market-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yagoluiz%2Fmarket-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yagoluiz%2Fmarket-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yagoluiz%2Fmarket-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yagoluiz%2Fmarket-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yagoluiz","download_url":"https://codeload.github.com/yagoluiz/market-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243996898,"owners_count":20380978,"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":["docker","docker-compose","dotnet","k8s"],"created_at":"2024-11-23T10:24:41.591Z","updated_at":"2025-12-30T22:45:02.298Z","avatar_url":"https://github.com/yagoluiz.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Market API\n\n![](https://github.com/yagoluiz/market-api/workflows/Docker%20Image%20CI/badge.svg)\n\nAPI responsible for managing markets.\n\n## Instructions for run project\n\nRun project via Docker, Kubernetes (minikube), via Visual Studio (F5 or CTRL + F5), Visual Studio Code (tasks project) or CLI.\n\n### .NET CLI\n\n- Run project\n\n```bash\nsrc/Market.API\n\ndotnet watch run\n```\n\n- Run tests\n\n```bash\ndotnet test -t\n```\n\n### Docker\n\n```bash\ndocker-compose up -d\n```\n\n### Kubernetes\n\n- Run minikube\n\n```bash\nminikube start\n```\n\n```bash\nminikube dashboard\n```\n\n- Run files\n\n```bash\nsh k8s/deploy.sh\n```\n\n## Endpoints\n\n- Docker/.NET cli\n\nCurl's file: [endpoints.http](endpoints.http).\n\nFor more information visit swagger: *http://localhost:5000/swagger/index.html* or *http://localhost:5001/swagger/index.html (Docker)*.\n\n- Kubernetes (minikube)\n\n**LoadBalancer**\n\nCreate access tunnel:\n\n```bash\nminikube tunnel\n```\n\nFind created external IP:\n\n```bash\nkubectl get svc -n market\n```\n\n## Tests\n\n### Code Coverage\n\nTo run the coverage of the project tests, it is necessary to run the test command in coverage mode:\n\n```bash\ndotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude=\"[xunit*]*\" /p:ExcludeByFile=\"**/Migrations/*.cs\"\n```\n\nRun the command in the **root** project.\n\n### Coverage Report\n\nInstall [Report Generator](https://danielpalme.github.io/ReportGenerator) CLI tool:\n\n```bash\ndotnet tool install --global dotnet-reportgenerator-globaltool\n```\n\n- Main command\n\n```bash\nreportgenerator \"-reports:test/*/*.opencover.xml\" \"-targetdir:coverage\" \"-reporttypes:Html\"\n```\n\nRun the command in the **root** project.\n\n- Coverage report\n\nFind the folder **coverage** and open **index.html**.\n\n## Database\n\nWhen running the project the database migration is executed.\n\nTo run manually, follow these steps:\n\nInstall [Entity Framework](https://docs.microsoft.com/en-us/ef/core/cli/dotnet) CLI tool.\n\n```bash\ndotnet tool install --global dotnet-ef\n```\n\n- Main commands\n\n```bash\ndotnet ef migrations add [NAME_MIGRATION] -c EntityContext -s src/Market.API -p src/Market.Infra\n```\n\n```bash\ndotnet ef database update -c EntityContext -s src/Market.API -p src/Market.Infra \n```\n\nRun the commands in the **root** project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyagoluiz%2Fmarket-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyagoluiz%2Fmarket-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyagoluiz%2Fmarket-api/lists"}