{"id":24935183,"url":"https://github.com/dpedwards/dotnet-core-micro-rabbit","last_synced_at":"2025-10-19T18:58:08.797Z","repository":{"id":40901585,"uuid":"227361828","full_name":"dpedwards/dotnet-core-micro-rabbit","owner":"dpedwards","description":"Microservices with RabbitMQ","archived":false,"fork":false,"pushed_at":"2025-02-02T11:04:15.000Z","size":916,"stargazers_count":10,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T01:14:01.254Z","etag":null,"topics":["csharp","dotnet-core","erlang","event-bus","microservice","mssql-database","rest-api"],"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/dpedwards.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}},"created_at":"2019-12-11T12:33:28.000Z","updated_at":"2025-02-02T11:04:14.000Z","dependencies_parsed_at":"2023-01-25T05:00:50.301Z","dependency_job_id":null,"html_url":"https://github.com/dpedwards/dotnet-core-micro-rabbit","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/dpedwards%2Fdotnet-core-micro-rabbit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpedwards%2Fdotnet-core-micro-rabbit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpedwards%2Fdotnet-core-micro-rabbit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpedwards%2Fdotnet-core-micro-rabbit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dpedwards","download_url":"https://codeload.github.com/dpedwards/dotnet-core-micro-rabbit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248127534,"owners_count":21052241,"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":["csharp","dotnet-core","erlang","event-bus","microservice","mssql-database","rest-api"],"created_at":"2025-02-02T15:21:45.527Z","updated_at":"2025-10-19T18:58:08.677Z","avatar_url":"https://github.com/dpedwards.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [.NET Core Microservices with RabbitMQ](https://github.com/dpedwards/dotnet-core-micro-rabbit)\n\n[![LICENSE](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://raw.githubusercontent.com/dpedwards/dotnet-core-blockchain-advanced/master/LICENSE)\n[![.NET Core](https://img.shields.io/badge/dotnet%20core-%3E%3D%202.2-blue.svg)](https://dotnet.microsoft.com/download)\n[![swagger](https://img.shields.io/badge/swagger-lightgreen.svg)](https://rubygems.org/gems/minimal-mistakes-jekyll)\n[![RabbitMQ](https://img.shields.io/badge/RabbitMQ-orange.svg)](https://www.rabbitmq.com/download.html)\n[![erlang](https://img.shields.io/badge/erlang-purple.svg)](https://www.erlang.org/downloads)\n\n.NET Core Microservice architecture design pattern with RabbitMQ messaging\n\n![](MicroRabbit/images/.NET_Core_Microservices_(RabbitMQ_EventBus).png)\n\n## Projects\n\n- MicroRabbit.Domain.Core\n- MicroRabbit.Infra.Bus\n- MicroRabbit.Infra.IoC\n- MicroRabbit.Banking.Api\n- MicroRabbit.Banking.Application\n- MicroRabbit.Banking.Data\n- MicroRabbit.Banking.Domain\n- MicroRabbit.Transfer.Api\n- MicroRabbit.Transfer.Application\n- MicroRabbit.Transfer.Data\n- MicroRabbit.Transfer.Domain\n- MicroRabbit.MVC\n\n## Notable features\n\n- Microservice architecture design pattern\n- RabbitMQ messaging\n\n## Project notes\n\n- **MicroRabbit.Banking.Api** project is listening on localhost port `5001` (https) and `5000` (http)\n![](MicroRabbit/images/Banking_Microservice_Swagger_UI.png)\n\n- **MicroRabbit.Transfer.Api** project is listening on localhost port `5003` (https) and `5002` (http)\n![](MicroRabbit/images/Transfer_Microservice_Swagger_UI.png)\n\n- **MicroRabbit.MVC** project is listeing on localhost port `5005` (https) and `5004` (http)\n![](MicroRabbit/images/Banking_Microservice_MVC.png)\n\n### Installation\n\nCheck if .NET Core Framework 2.2+ and SQL Server 2016+ is installed on your machine. Next configure the database connection string in `appsettings.json` file before creating a needed database for MicroRabbit.Banking.Api and MicroRabbit.Transfer.Api project. \n\nTo create a database for **MicroRabbit.Banking.Api** project, select `MicroRabbit.Banking.Data` in Visual Studio as \u003eStart Project\u003c and execute the following commands in Package Manager Console:\n- `Add-Migration \"Initial Migration\" -Context BankingDbContext`\n- `Update-database`\n\nTo create a database for **MicroRabbit.Transfer.Api** project, select `MicroRabbit.Transfer.Data` in Visual Studio as \u003eStart Project\u003c and execute the following commands in Package Manager Console:\n- `Add-Migration \"Initial Migration\" -Context TransferDbContext`\n- `Update-database`\n\nAfter successfully created the BankingDb and the TransferDb databases you can add some test data to Accounts and TransferLogs tables. Alternatively run the MicroRabbit.Banking.Api, MicroRabbit.Transfer.Api and MicroRabbit.MVC and use swagger or MVC form input to create test data. \n\n## RabbitMQ and erlang notes\n\nIf all Api and MVC projects running correctly you can check the queued messages between sender and consumer applications by the microservices architecture design pattern with RabbitMQ.\n\nFirst download and install [erlang](https://www.erlang.org/downloads) before download and install [RabbitMQ](https://www.rabbitmq.com/download.html) on the same machine the microservcies are running. After erlang and RabbitMQ installations are done, now open RabbitMQ command prompt with administrator rights and type in the following command:\n`rabbitmq-plugins enable rabbitmq_management`\n\nNow access the RabbitMQ admin dashboard in a browser on localhost port `1567`. The default username and password for login is `guest`.\n\nOther RabbitMQ commands:\n- Stop app `rabbitmqctl stop_app` \n- Start app `rabbitmqctl start_app`\n- Reset app  `rabbitmqctl reset`\n- Add new user `rabbitmqctl add_user username password`\n- Set new role `rabbitmqctl set_user_tags username administrator`\n- Set new permission `rabbitmqctl set_permission -p / username \".*\" \".*\" \".*\"`\n\n**RabbitMQ dashboard**\n![](MicroRabbit/images/Overview_RabbitMQ%20Management.png)\n\n### Pull Requests\n\nWhen submitting a pull request:\n\n1. Clone the repo.\n2. Create a branch off of `master` and give it a meaningful name (e.g. `my-awesome-new-feature`).\n3. Open a pull request on GitHub and describe the feature or fix.\n\n---\n\n## Credits\n\n### Creator\n\n**Davain Pablo Edwards**\n\n- \u003chttps://github.com/dpedwards\u003e\n\n### Requirements\n\n- [Visual Studio](https://visualstudio.microsoft.com/de/vs/) or [Visual Studio Code](https://code.visualstudio.com/)\n- [.NET Core](https://dotnet.microsoft.com/download)\n- [SQL Server](https://www.microsoft.com/de-de/sql-server/sql-server-downloads)\n\n### Packages:\n\n- [Microsoft.NETCore.App](https://dotnet.microsoft.com/)\n- [MediatR](https://github.com/jbogard/MediatR)\n- [Microsoft.Extensions.DependencyInjection](https://dotnet.microsoft.com/apps/aspnet)\n- [Newtonsoft.Json](https://www.newtonsoft.com/json)\n- [RabbitMQ.Client](https://www.rabbitmq.com/dotnet.html)\n- [Microsoft.AspNetCore.Razor.Design](https://dotnet.microsoft.com/apps/aspnet)\n- [Swashbuckle.AspNetCore](https://github.com/domaindrivendev/Swashbuckle.AspNetCore)\n- [Microsoft.EntityFrameworkCore](https://docs.microsoft.com/de-de/ef/core/)\n- [Microsoft.EntityFrameworkCore.Design](https://docs.microsoft.com/de-de/ef/core/)\n- [Microsoft.EntityFrameworkCore.SqlServer](https://docs.microsoft.com/de-de/ef/core/)\n- [Microsoft.EntityFrameworkCore.Tools](https://docs.microsoft.com/de-de/ef/core/)\n\n---\n\n## License\n\nMIT License\n\nCopyright (c) 2019 Davain Pablo Edwards\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpedwards%2Fdotnet-core-micro-rabbit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdpedwards%2Fdotnet-core-micro-rabbit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpedwards%2Fdotnet-core-micro-rabbit/lists"}