Giter Site home page Giter Site logo

bob-jung / foxoffice Goto Github PK

View Code? Open in Web Editor NEW

This project forked from reacture/foxoffice

0.0 1.0 0.0 987 KB

Sample application demonstrating how to build a distributed cloud .NET Core application based on CQRS and Event Sourcing.

License: MIT License

C# 99.49% CSS 0.40% JavaScript 0.11%

foxoffice's Introduction

FoxOffice

CQRS Sample Program

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

Apps

Architecture

Architecture

How to execute the applications locally

Install and run Azure storage emulator and Cosmos 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

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

Start debugging

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.