-
Config is in
.editorconfig -
vim
# configure 'editorconfig/editorconfig-vim' and 'sbdchd/neoformat' plug-ins autocmd BufWritePre *.cs silent! :Neoformat -
vscode
- configure
EditorConfig for VS Codeplug-in
- configure
-
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" };
-
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 datasource connections
- cortex: http://cortex:9009/api/prom
- loki: http://loki:3100
- tempo: http://tempo:3200
-
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