Skip to content

Samples

Slava Vedernikov edited this page Feb 21, 2024 · 27 revisions

E-Shop sample

Below are the links to the AaC and the Diagrams generated by C4InterFlow based on E-Shop sample .NET application

Architecture as Code (AaC)

AaC is generated from C# source code

Diagrams

Diagrams (generated and tested with both C# and YAML AaC) for all Scope, Level of Details, Types and Formats.

Try it locally

  1. Clone E-Shop sample .NET application repo
    1. Remember your local E-Shop repo directory, you will need it later.
  2. Clone C4InterFlow repo
  3. Open Samples\dotnet.eShop sub-directory under the directory where C4InterFlow repo was cloned to in the previous step
  4. Edit execute-aac-strategy.bat file as follows:
    1. Replace C:\Data\Projects\C4InterFlow\eShop-main in set "net-sourcecode-dir=C:\Data\Projects\C4InterFlow\eShop-main\src" with the path to the directory where you cloned the E-Shop repo to
    2. Choose one of the following settings
      1. To generate Architecture as Code in C#, set aac-type to CSharp i.e. set "aac-type=CSharp"
      2. To generate Architecture as Code in YAML, set aac-type to Yaml i.e. set "aac-type=Yaml"
    3. Save the changes
  5. Double-click on execute-aac-strategy.bat file to run it and make sure it completed successfully
  6. Edit draw-diagrams.bat file as follows:
    1. Choose one of the following settings
      1. To re-draw all diagrams (i.e. .puml, .png and .svg formats), set redraw-all to TRUE i.e. set "redraw-all=TRUE"
        1. NOTE: this may take several minutes
      2. To re-draw only diagrams in .puml format, set redraw-all to FALSE i.e. set "redraw-all=FALSE"
    2. Choose one of the following settings
      1. To generate diagrams from C# Architecture as Code, set aac-type to CSharp i.e. set "aac-type=CSharp"
      2. To generate diagrams from YAML Architecture as Code, set aac-type to Yaml i.e. set "aac-type=Yaml"
    3. Save the changes
  7. Double-click on draw-diagrams.bat file to run it and make sure it completed successfully

Clone this wiki locally