# MeeChain Connect
Web app และ API server สำหรับ MeeChain พร้อม runtime helper สำหรับรันแบบ local, PM2, Docker และ Compose
- MeeChain API server ผ่าน
server.js - Health check ที่
/healthและ/api/health - Config endpoint ที่
/api/config - Web3 / RPC integration สำหรับ MeeChain
- Runtime helper scripts สำหรับ start, stop, logs, status, doctor
- Node.js 20+ แนะนำ
- npm
- PM2 (ถ้าจะรันแบบ process manager)
- Docker / Compose (ถ้าจะรันแบบ container)
git clone https://github.com/MEECHAIN1/MeeChain-Connect.git
cd MeeChain-Connect
cp .env.example .env
npm install
bash scripts/doctor.sh
bash scripts/start.shbash scripts/start.shbash scripts/start.sh pm2bash scripts/start.sh dockerbash scripts/start.sh composeไฟล์ docker-compose.portainer.yml เพิ่ม Portainer EE แบบเชื่อมผ่าน Portainer Agent สำหรับ Docker Swarm โดยเปิดพอร์ต 9443, 9000, และ 8000
docker swarm init # run once on manager, if Swarm is not initialized yet
docker stack deploy -c docker-compose.portainer.yml portainerbash scripts/start.sh nodebash scripts/start.sh --explainbash scripts/status.shbash scripts/logs.shbash scripts/stop.shcurl http://127.0.0.1:3000/health
curl http://127.0.0.1:3000/api/health
curl http://127.0.0.1:3000/api/configMeeChain exposes a Cloudflare Gateway RPC metadata profile through GET /api/network and the reusable sessions.json automation template:
- Primary RPC Gateway: IPv4
172.64.36.1 - Secondary RPC Gateway: IPv6
2a06:98c1:54::4b:43e8 - Secure DNS over TLS:
ohsut0yy6x.cloudflare-gateway.com - Secure DNS over HTTPS:
https://ohsut0yy6x.cloudflare-gateway.com/dns-query
See docs/RPC_GATEWAY_SETUP.md for the overlay badge flow and operational checklist.
โปรเจกต์นี้มี ecosystem.config.cjs สำหรับรันผ่าน PM2 โดยใช้ process name:
pm2 start ecosystem.config.cjs --env production
pm2 logs meechain-dashboard
pm2 statusตั้งค่าผ่าน .env
ตัวอย่างค่าหลัก:
PORT=3000
NODE_ENV=production
CHAIN_ID=13390
DRPC_RPC_URL=https://rpc.meechain.live/rpc
VITE_RPC_URL=https://rpc.meechain.live/rpc
OPENAI_API_KEY=
OPENAI_BASE_URL=https://api.openai.com/v1ถ้าไม่ได้ตั้ง
OPENAI_API_KEYระบบจะยังรันได้ แต่ฟีเจอร์ MeeBot AI จะถูกปิดไว้
.
├── server.js
├── ecosystem.config.cjs
├── docker-compose.yml
├── Dockerfile
├── scripts/
│ ├── doctor.sh
│ ├── start.sh
│ ├── stop.sh
│ ├── status.sh
│ └── logs.sh
├── src/
└── .env.example
- แนะนำให้ใช้งานผ่าน
scripts/start.shเป็นหลัก - ใน Termux มักเหมาะกับ
nodeหรือpm2 - ถ้าใช้งาน container ให้ใช้ Docker/Compose ตาม environment ที่รองรับ
MIT