FoxOffice - 此示例程序展示了如何基于CQRS和事件源构建分布式云.NET Core程序

网友投稿 526 2022-10-19

FoxOffice - 此示例程序展示了如何基于CQRS和事件源构建分布式云.NET Core程序

FoxOffice - 此示例程序展示了如何基于CQRS和事件源构建分布式云.NET Core程序

FoxOffice

CQRS Sample Program

This sample program shows how to build a distributed cloud .NET Core application based on CQRS and Event Sourcing.

Architecture

How to execute the applications locally

Install and run Azure storage emulator and Cosmos DB emulator

Azure storage emulatorCosmos DB emulator

Create a local settings file for the function app

Create local.settings.json file in the directory ./source/FoxOffice.Processor to execute the function app on local machine.

{ "IsEncrypted": false, "Values": { "AzureWebJobsStorage": "UseDevelopmentStorage=true", "FUNCTIONS_WORKER_RUNTIME": "dotnet" }, "ConnectionStrings": { "Storage": "UseDevelopmentStorage=true" }, "Messaging": { "Storage": { "QueueName": "messages" } }, "Domain": { "Storage": { "EventStoreTableName": "FoxOfficeEventStore" } }, "ReadModel": { "CosmosDb": { "Endpoint": "https://localhost:8081", "AuthKey": "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==", "DatabaseId": "FoxOfficeDatabase", "CollectionId": "FoxOfficeCollection" } }}

Open the solution

Open the solution ./source/FoxOffice.sln in Visual Studio.

If Visual Studio is not installed on your local machine you can download Visual Studio community edition here. It's free for students, open-source contributors, and individuals.

Set startup projects

Select the menu 'Project' > 'Set Startup Projects...'.Select 'Multiple startup projects' radio button.Select Action of 'FoxOffice.Processor' to 'Start'.Select Action of 'FoxOffice.Api' to 'Start'.Select Action of 'FoxOffice.Admin' to 'Start'.

Start debugging

Select the menu 'Debug' > 'Start Debugging'.

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:oracle 12c 13姨
下一篇:周末聊聊IT人员的人脉观:关于帮妹子找兼职有感
相关文章

 发表评论

暂时没有评论,来抢沙发吧~