Installation Guide
This guide will walk you through installing Veridock Server on your system.
Prerequisites
- Python 3.8 or higher
- pip (Python package manager)
- Git (for development installations)
- Caddy web server (will be installed automatically)
Installation Methods
Method 1: Using pip (Recommended)
- Create and activate a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install Veridock Server:
Method 2: From Source
- Clone the repository:
git clone https://github.com/veridock/server.git
cd server
- Install dependencies:
This will:
- Install Python dependencies using Poetry
- Install Caddy web server
- Set up the development environment
Verifying the Installation
After installation, verify that the veridock
command is available:
You should see the installed version number if everything was installed correctly.
Post-Installation
- Initialize Configuration:
This will create a .env
file with default settings.
- Start the Server:
This will start the gRPC server, HTTP gateway, and Caddy web server.
Troubleshooting
Common Issues
- Caddy Installation Fails
- Ensure you have write permissions to
/usr/local/bin
- Try running the installer with
sudo
- Or install Caddy manually from caddyserver.com
- Python Dependencies Fail to Install
- Ensure you have Python development headers installed
- On Ubuntu/Debian:
sudo apt-get install python3-dev python3-venv
- On macOS:
xcode-select --install
- Port Conflicts
- By default, Veridock uses ports 2019 (HTTP) and 50051 (gRPC)
- Change these in the
.env
file if needed
Next Steps