From de6463530daf004ce3969007233815551438025f Mon Sep 17 00:00:00 2001 From: jackyu66git Date: Sun, 3 May 2026 20:31:19 +0800 Subject: [PATCH] Update README: add start.sh, fix Quick Start - Add start.sh to Quick Start section and project file tree - Remove broken cp .env.example reference (no such file) - Annotate .env with config categories --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 91b4893..9a3369a 100644 --- a/README.md +++ b/README.md @@ -64,10 +64,16 @@ PriceStore ─────────┼───────────── ```bash cd exchange-monitor-go go build -o exchange-monitor . -cp .env.example .env # edit to configure +# Edit .env to configure (token, threshold, etc.) ./exchange-monitor ``` +Or use the startup script (auto-compiles if sources changed, cleans stale port): + +```bash +./start.sh +``` + Then open [http://localhost:8888](http://localhost:8888) for the Web dashboard. ## Configuration (.env) @@ -174,7 +180,8 @@ exchange-monitor-go/ ├── dashboard.go # Web server + SSE + history buffers ├── toaster.go # Telegram notifications ├── static.go # Embedded web static files -├── .env # Local configuration +├── start.sh # Startup script (port check + build + run) +├── .env # Local configuration (TELEGRAM, API keys, thresholds) ├── exchange/ │ ├── connector.go # Generic WS connector with reconnect │ ├── binance.go # Binance bookTicker WS