{"id":20340926,"url":"https://github.com/leancodepl/contractsgenerator-dart","last_synced_at":"2025-04-11T23:31:19.128Z","repository":{"id":37041914,"uuid":"385651617","full_name":"leancodepl/contractsgenerator-dart","owner":"leancodepl","description":"Dart contracts client generator for a CQRS API","archived":false,"fork":false,"pushed_at":"2025-03-21T14:58:02.000Z","size":292,"stargazers_count":3,"open_issues_count":9,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-26T14:54:03.018Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dart","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/leancodepl.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-07-13T15:28:58.000Z","updated_at":"2025-03-21T14:52:33.000Z","dependencies_parsed_at":"2024-11-14T21:29:03.658Z","dependency_job_id":"bc84e8ab-43e4-4707-be93-cc8f5f01a62d","html_url":"https://github.com/leancodepl/contractsgenerator-dart","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Fcontractsgenerator-dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Fcontractsgenerator-dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Fcontractsgenerator-dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancodepl%2Fcontractsgenerator-dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leancodepl","download_url":"https://codeload.github.com/leancodepl/contractsgenerator-dart/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248494869,"owners_count":21113517,"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":[],"created_at":"2024-11-14T21:24:42.117Z","updated_at":"2025-04-11T23:31:19.104Z","avatar_url":"https://github.com/leancodepl.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dart contracts generator\n\n[![](https://img.shields.io/pub/v/leancode_contracts_generator.svg?logo=dart)](https://pub.dev/packages/leancode_contracts_generator)\n[![](https://github.com/leancodepl/contractsgenerator-dart/workflows/leancode_contracts_generator-test/badge.svg)](https://github.com/leancodepl/contractsgenerator-dart/actions)\n[![](https://github.com/leancodepl/contractsgenerator-dart/workflows/leancode_contracts-test/badge.svg)](https://github.com/leancodepl/contractsgenerator-dart/actions)\n\nDart contracts client generator for a CQRS API. Generated code is based on the format described in \u003chttps://github.com/leancodepl/contractsgenerator\u003e.\n\n## Prerequisites\n\nYou will need to have .NET 6 and the .NET version used in your project installed on your system and have `dotnet` available in your PATH.\n\n### M1 macs\n\nWhen installing multiple .NET sdks you need to make sure all of them are for the same architecture. Unfortunately since .NET 6 is the first .NET version to include native arm64 macOS builds, you will be forced to install the x64 version regardless:\n\n```sh\n# tap into repo that hosts mutually compatible dotnet casks\nbrew tap isen-ng/dotnet-sdk-versions\n# force x64 .NET6\narch -x86_64 brew install dotnet-sdk6-0-100\n# install your needed version (see https://github.com/isen-ng/homebrew-dotnet-sdk-versions#versions)\nbrew install --cask dotnet-sdk5-0-400\n```\n\nFinally, add the x64 dotnet to your `PATH`: `/usr/local/share/dotnet/x64`\n\n## Installation\n\n```sh\ndart pub add leancode_contracts_generator --dev\ndart pub add leancode_contracts\n```\n\n## Usage\n\nFirst run will take longer due to the need to download external dependencies.\n\n- Initialize a config file filled with defaults with `dart run leancode_contracts_generator init`\n- Generate client contracts code with `dart run leancode_contracts_generator`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancodepl%2Fcontractsgenerator-dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleancodepl%2Fcontractsgenerator-dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancodepl%2Fcontractsgenerator-dart/lists"}