Skip to main content

Installation

Prerequisites

Quick Start with Ever CLI

The fastest way to get started:

# Install the Ever CLI globally
npm install -g @ever-healthcare/ever-cli

# Initialize a new EDH installation
ever init

# Follow the interactive prompts!

The ever init command will:

  1. Check your system prerequisites
  2. Clone the edh-central repository
  3. Configure your .env file
  4. Install all dependencies
  5. Build the core crypto library
  6. Compile smart contracts
  7. Optionally start Docker infrastructure

Manual Setup

# 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

Or step-by-step:

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

Start Local Development

# 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

Verify Installation

# Check everything is working
ever doctor

# Or from the repo:
npm run edh status

Next Steps