https://github.com/masstransit/masstransit-templates
dotnet new template package
https://github.com/masstransit/masstransit-templates
Last synced: about 1 year ago
JSON representation
dotnet new template package
- Host: GitHub
- URL: https://github.com/masstransit/masstransit-templates
- Owner: MassTransit
- License: apache-2.0
- Created: 2021-03-29T18:03:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-14T04:49:59.000Z (almost 4 years ago)
- Last Synced: 2024-04-27T10:04:34.179Z (about 2 years ago)
- Language: C#
- Size: 43 KB
- Stars: 13
- Watchers: 5
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MassTransit Templates
MassTransit 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.

Get started by [reading through the documentation](https://masstransit-project.com/).
## Templates
These templates can be used to create new projects, add consumers to existing projects, and create new sagas.
### Worker Service
> Project Template
```
dotnet new mtworker -n ProjectName
```
This 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.
### RabbitMQ Docker Service
> Project Template
```
dotnet new mtdocker -n ProjectName
```
This 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/`.
### Consumer
> Item Template
```
dotnet new mtconsumer -n MessageName
```
This templates creates a message type (*MessageName*), a consumer (called *MessageName*Consumer), and a consumer definition with an initial message retry filter configured.
### State Machine Saga
> Item Template
```
dotnet new mtstatemachine -n StateName
```
This 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.
## Discord
Get help live at the MassTransit Discord server.
[](https://discord.gg/rNpQgYn)
## Testing
Install the dev package
```sh
./scripts/install-dev
```
Uninstall the dev package, and reinstall the latest release
```sh
./scripts/uninstall-dev
```
# CREDITS
Logo Design by _The Agile Badger_