{"id":18456079,"url":"https://github.com/masstransit/masstransit-templates","last_synced_at":"2025-04-08T04:34:19.433Z","repository":{"id":40244398,"uuid":"352738241","full_name":"MassTransit/MassTransit-Templates","owner":"MassTransit","description":"dotnet new template package","archived":false,"fork":false,"pushed_at":"2022-08-14T04:49:59.000Z","size":44,"stargazers_count":13,"open_issues_count":1,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-27T10:04:34.179Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MassTransit.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}},"created_at":"2021-03-29T18:03:25.000Z","updated_at":"2024-03-25T03:30:02.000Z","dependencies_parsed_at":"2022-08-30T19:51:33.820Z","dependency_job_id":null,"html_url":"https://github.com/MassTransit/MassTransit-Templates","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MassTransit%2FMassTransit-Templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MassTransit%2FMassTransit-Templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MassTransit%2FMassTransit-Templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MassTransit%2FMassTransit-Templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MassTransit","download_url":"https://codeload.github.com/MassTransit/MassTransit-Templates/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247779796,"owners_count":20994569,"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-06T08:09:59.324Z","updated_at":"2025-04-08T04:34:19.010Z","avatar_url":"https://github.com/MassTransit.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MassTransit Templates\n\nMassTransit is a _free, open-source_ distributed application framework for .NET. MassTransit makes it easy to create applications and services that leverage message-based, loosely-coupled asynchronous communication for higher availability, reliability, and scalability.\n\n![Mass Transit](https://avatars2.githubusercontent.com/u/317796?s=200\u0026v=4 \"Mass Transit\")\n\nGet started by [reading through the documentation](https://masstransit-project.com/).\n\n## Templates\n\nThese templates can be used to create new projects, add consumers to existing projects, and create new sagas.\n\n### Worker Service\n\n\u003e Project Template\n\n```\ndotnet new mtworker -n ProjectName\n```\n\nThis template creates a new worker service project, using the in-memory transport. Once created, the item templates such as `mtconsumer` or `mtstatemachine` can be used to add messaging components. Use `dotnet run` in the project folder to run the project and view the logs. The service will automatically discover message consumers and configure the endpoints using the kebab-case endpoint name formatter.\n\n### RabbitMQ Docker Service\n\n\u003e Project Template\n\n```\ndotnet new mtdocker -n ProjectName\n```\n\nThis template creates a new worker service project, using RabbitMQ. Once created, the item templates such as `mtconsumer` or `mtstatemachine` can be used to add messaging components. Use `docker-compose up` in the project folder to build the containers and run the project. The service will automatically discover message consumers and configure the endpoints using the kebab-case endpoint name formatter. You can open the RabbitMQ management console by navigating to `http://localhost:15672/`.\n\n### Consumer\n\n\u003e Item Template\n\n```\ndotnet new mtconsumer -n MessageName\n```\n\nThis templates creates a message type (*MessageName*), a consumer (called *MessageName*Consumer), and a consumer definition with an initial message retry filter configured.\n\n### State Machine Saga\n\n\u003e Item Template\n\n```\ndotnet new mtstatemachine -n StateName\n```\n\nThis templates creates a state machine saga (called *StateName*StateMachine), the state (*StateName*State), an initial event message type (*StateName*Event), and a saga definition with an initial message retry filter and in-memory out box configured.\n\n\n## Discord \n\nGet help live at the MassTransit Discord server.\n\n[![alt Join the conversation](https://img.shields.io/discord/682238261753675864.svg \"Discord\")](https://discord.gg/rNpQgYn)\n\n## Testing\n\nInstall the dev package\n\n```sh\n./scripts/install-dev\n```\n\nUninstall the dev package, and reinstall the latest release\n\n```sh\n./scripts/uninstall-dev\n```\n\n# CREDITS\nLogo Design by _The Agile Badger_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasstransit%2Fmasstransit-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasstransit%2Fmasstransit-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasstransit%2Fmasstransit-templates/lists"}