[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-84153":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":12,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":14,"stars30d":14,"stars90d":14,"forks30d":14,"starsTrendScore":14,"compositeScore":15,"rankGlobal":10,"rankLanguage":10,"license":16,"archived":17,"fork":17,"defaultBranch":18,"hasWiki":19,"hasPages":17,"topics":20,"createdAt":10,"pushedAt":10,"updatedAt":21,"readmeContent":22,"aiSummary":10,"trendingCount":14,"starSnapshotCount":14,"syncStatus":23,"lastSyncTime":24,"discoverSource":25},84153,"ByteDanceliveauctioni","Ye-yellow\u002FByteDanceliveauctioni","Ye-yellow","A full-stack live auction platform featuring real-time bidding, WebSocket synchronization, Redis runtime, order settlement, and AI-powered auction assistance.","",null,"TypeScript",52,1,0,0.9,"MIT License",false,"main",true,[],"2026-06-12 02:04:38","# ByteDanceliveauctioni\n\nLiveAuction is a full-stack live commerce auction demo built for the Douyin E-commerce AI full-stack challenge. It contains a Go backend, a React merchant console, and a mobile H5 buyer client that together cover lot creation, live bidding, order settlement, real-time synchronization, and AI-assisted search\u002Frecommendation.\n\n## Project Overview\n\nThe system models a live auction workflow:\n\n1. Merchants create lots, configure bidding rules, and start live auction sessions from the PC console.\n2. Buyers enter the H5 live room, view current lots, place bids, and receive real-time state updates.\n3. The backend validates bids, resolves winners, creates orders, and projects auction facts for query and analytics.\n4. Redis handles hot real-time auction runtime state, while MySQL stores the final auditable business facts.\n5. WebSocket pushes price, ranking, countdown, and settlement events to buyers and merchant screens.\n\n## Repository Structure\n\n```text\nByteDanceliveauctioni\u002F\n├── live-auction-bid-backend\u002F   # Go auction backend, Redis runtime, MySQL facts, WebSocket events\n├── live-auction-bid-frontend\u002F  # PC merchant\u002Fadmin console built with React + TypeScript + Vite\n├── live-auction-user-h5\u002F       # Mobile H5 buyer client built with React + TypeScript + Vite\n├── README.md\n├── SECURITY.md\n├── LICENSE\n└── .gitignore\n```\n\n## Architecture\n\n```mermaid\nflowchart LR\n  H5[\"H5 Buyer Client\"] -->|\"HTTP \u002F WebSocket\"| API[\"Go Auction Backend\"]\n  PC[\"PC Merchant Console\"] -->|\"HTTP \u002F WebSocket\"| API\n  API -->|\"Lua atomic bidding runtime\"| Redis[(Redis)]\n  API -->|\"Business facts \u002F orders\"| MySQL[(MySQL)]\n  API -->|\"Vector search sync\"| Pgvector[(PostgreSQL + pgvector)]\n  API -->|\"Embedding API\"| AI[\"External AI \u002F Embedding Service\"]\n  API -->|\"Metrics\"| Prometheus[\"Prometheus \u002F Grafana\"]\n```\n\n## Core Capabilities\n\n- Real-time bidding with Redis Lua atomic decision logic.\n- Hot runtime state and final fact storage split between Redis and MySQL.\n- WebSocket event push with snapshot recovery after reconnect.\n- Auction state machine for queued, live, extended, settled, cancelled, failed, and expired lots.\n- Merchant data cockpit for GMV, orders, payment status, and live operating metrics.\n- AI-assisted semantic lot search and recommendation through embedding + vector retrieval.\n\n## Requirements\n\n- Go 1.22+\n- Node.js 20+\n- npm 10+\n- Docker and Docker Compose\n- MySQL 8.4\n- Redis 7.2\n- Optional: PostgreSQL + pgvector for semantic search\n\n## Local Startup\n\nStart backend dependencies and service. The default Docker Compose profile uses local file storage, mock AI responses, MySQL, Redis, Consul, Prometheus, and Grafana, so no cloud keys are required for a working demo.\n\n```bash\ncd live-auction-bid-backend\ncp deploy\u002F.env.example deploy\u002F.env\nmake docker-up\n```\n\nVerify the backend:\n\n```bash\ncurl http:\u002F\u002F127.0.0.1:18080\u002Fhealthz\ncurl http:\u002F\u002F127.0.0.1:18080\u002Freadyz\n```\n\nDefault merchant account:\n\n```text\nusername: main\npassword: main_dev_password\n```\n\nStart the PC merchant console:\n\n```bash\ncd live-auction-bid-frontend\nnpm ci\nnpm run dev -- --host 0.0.0.0 --port 5173\n```\n\nStart the H5 buyer client:\n\n```bash\ncd live-auction-user-h5\ncp .env.example .env.local\nnpm ci\nnpm run dev -- --host 0.0.0.0 --port 5174\n```\n\nLocal URLs:\n\n| App | URL |\n| --- | --- |\n| PC merchant console | `http:\u002F\u002F127.0.0.1:5173` |\n| H5 buyer client | `http:\u002F\u002F127.0.0.1:5174` |\n| Backend API | `http:\u002F\u002F127.0.0.1:18080` |\n| Grafana | `http:\u002F\u002F127.0.0.1:13000` |\n| Prometheus | `http:\u002F\u002F127.0.0.1:19090` |\n\n## Configuration\n\nAll sensitive runtime values must be provided through environment variables or local `.env` files. Public examples are provided as `.env.example` files only.\n\nCommon backend variables:\n\n```text\nAUCTION_MYSQL_DSN\nAUCTION_REDIS_ADDR\nAUCTION_REDIS_PASSWORD\nAUCTION_JWT_SECRET\nAUCTION_BOOTSTRAP_MAIN_ACCOUNT_USERNAME\nAUCTION_BOOTSTRAP_MAIN_ACCOUNT_PASSWORD\nAUCTION_STORAGE_PROVIDER\nAUCTION_LOCAL_STORAGE_DIR\nAUCTION_LOCAL_STORAGE_PUBLIC_BASE_URL\nAUCTION_EMBEDDING_API_KEY\nAUCTION_AI_API_KEY\n```\n\n`AUCTION_STORAGE_PROVIDER=local` is the default public-delivery mode. Switch to `tos` only when deploying with real object-storage credentials.\n\nDo not commit real `.env` files, server credentials, cloud keys, or production secrets.\n\n## Verification\n\nBackend:\n\n```bash\ncd live-auction-bid-backend\ngo test .\u002Fapp\u002Fauction\u002Fservice\u002Finternal\u002Fbiz\u002Fauction\n```\n\nPC frontend:\n\n```bash\ncd live-auction-bid-frontend\nnpm ci\nnpm run build\n```\n\nH5:\n\n```bash\ncd live-auction-user-h5\nnpm ci\nnpm run build\nnpm test\n```\n\n## Delivery Notes\n\n- This public delivery repository keeps the main source history of the three original projects after sensitive-history filtering.\n- The submitted production shape is a single-node deployment. Cluster routing, shard gateway, and multi-node operations remain reserved extension directions and are not claimed as finalized delivery features here.\n- Runtime screenshots, Feishu project documents, and challenge demo links should be attached from the final submission page rather than committed with secrets or private environment files.\n",2,"2026-06-11 04:12:24","CREATED_QUERY"]