Skip to content

Repository files navigation

README

Format

  • Config is in .editorconfig

  • vim

    # configure 'editorconfig/editorconfig-vim' and 'sbdchd/neoformat' plug-ins
    autocmd BufWritePre *.cs silent! :Neoformat
    
  • vscode

    • configure EditorConfig for VS Code plug-in

Configuration

  • Please change below,

  • react/context/shop-context.tsx

    // Required:
    // change this line to your local host name of the ASP.NET server
    const baseCsUrl = "http://your-server:15001";
  • csharp/shop/Consts.cs

    // Optional:
    // If you'd like to use a DNS name,
    // change this line to your local host name of the ASP.NET server
    //
    // private static string ImageBaseUrl = $"http://{Globals.GetLocalIPAddress()}:15001/";
    private const string ImageBaseUrl = "http://your-server:15001/";
    
    // add your next.js server's host:port as CORS_ORIGINS
    // public static string[] CORS_ORIGINS = new[] { $"http://{Globals.GetLocalIPAddress()}:3000", "http://localhost:3000" };
    public static string[] CORS_ORIGINS = new[] { "http://your-server:3000", "http://localhost:3000" };

How to run

  • submodule update

    git submodule update --init --recursive
  • react

    npm run dev
  • csharp/shop (C#)

    dotnet run
  • Grafana, Loki, Tempo, Cortex

    cd shopping-docker
    podman-compose up -d
    
    # to stop
    podman-compose stop
    
    # to start again
    podman-compose start

Grafana

Ingestion

  • csharp/shoppping

    • It sends to the following endpoints

    • Tracing and Metrics are sent over OTLP gRPC

    • Logs are sent over OTLP HTTP using Serilog

      // csharp/shop/Consts.cs
      public const string OTLP_GRPC_ENDPOINT = "http://localhost:4317/";
      public const string OTLP_HTTP_ENDPOINT = "http://localhost:4318/";
  • react

    • TBD: Tracing and Logs are sent over OTLP HTTP
    • Metrics are not sent over OTLP Metrics, but included in OTLP Logging

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages