Nhảy tới nội dung

Cài đặt

Yêu cầu

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ẽ:

  1. Kiểm tra các yêu cầu hệ thống
  2. Clone repository edh-central
  3. Cấu hình tệp .env
  4. Cài đặt tất cả dependencies
  5. Build thư viện crypto cốt lõi
  6. Compile smart contract
  7. 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