Cài đặt
Yêu cầu
- Node.js 16+ (tải xuống)
- npm 8+ (đi kèm Node.js)
- Git (tải xuống)
- Docker (tùy chọn, cho hạ tầng cục bộ) (tải xuống)
Bắt đầu nhanh với Ever CLI
Cách nhanh nhất để bắt đầu:
# Install the Ever CLI globally
npm install -g @ever-healthcare/ever-cli
# Initialize a new EDH installation
ever init
# Follow the interactive prompts!
Lệnh ever init sẽ:
- Kiểm tra các yêu cầu hệ thống
- Clone repository edh-central
- Cấu hình tệp
.env - Cài đặt tất cả dependencies
- Build thư viện crypto cốt lõi
- Compile smart contract
- Tùy chọn khởi động hạ tầng Docker
Cài đặt thủ công
# Clone the repository
git clone https://github.com/Ever-Healthcare-OMA/edh-central.git
cd edh-central
# Run the setup wizard
npm run edh setup
Hoặc từng bước:
npm install # Install all workspace dependencies
npm run core:build # Build ever-edh-core
npm run contract:compile # Compile Solidity contracts
npm run contract:extract-abi # Sync ABIs to core library
Khởi động môi trường phát triển cục bộ
# Terminal 1: Infrastructure
docker-compose -f docker-compose.dev.yml up -d
# Terminal 2: Local blockchain
npm run contract:node
# Terminal 3: Deploy contracts
npm run contract:deploy:local
# Terminal 4: Backend services
npm run dev:services
# Terminal 5: Desktop client
npm run desktop:dev
Xác minh cài đặt
# Check everything is working
ever doctor
# Or from the repo:
npm run edh status
Bước tiếp theo
- CLI Reference — Tất cả các lệnh có sẵn
- Architecture — Hệ thống hoạt động như thế nào
- Trust Model — Cách chúng tôi chứng minh tính bảo mật