User guideGetting startedInstalling VerifyWise
Getting started

Installing VerifyWise

Step-by-step guide to deploy VerifyWise in your environment.

Setup time: 20-30 minutes

Prerequisites

VerifyWise runs on your infrastructure. Before you start, make sure you have these in place:

Server

  • •Linux server (Ubuntu 22.04 LTS recommended)
  • •4 GB RAM minimum (8 GB recommended), 2 CPU cores
  • •20 GB free disk space

Software

  • •Docker and Docker Compose (production)
  • •Node.js 22 and npm (development only)
  • •Git

Networking

  • •Port 3000 (backend API)
  • •Port 8080 (frontend, production) or 5173 (frontend, development)
  • •Port 5432 for PostgreSQL and 6379 for Redis (can be internal-only)

Pick a deployment method

Production (Docker Compose)

One install script, everything containerized. Use this unless you plan to modify the source code.

Development (npm)

Frontend and backend run separately with hot reload. Use this if you want to contribute or customize.

Production setup

1. Download the install files

mkdir verifywise && cd verifywise
curl -O https://raw.githubusercontent.com/verifywise-ai/verifywise/develop/install.sh

2. Edit environment variables

.env.prod is not published in the repository, so create it yourself in the same folder as install.sh. The installer checks every secret below and refuses to start any container while one is empty.

# Database
DB_USER=verifywise
DB_PASSWORD=your-secure-password
DB_NAME=verifywise
DB_PORT=5432

# Ports published on the host
BACKEND_PORT=3000
FRONTEND_PORT=8080

# Address people use to open VerifyWise (used in email links)
FRONTEND_URL=https://verifywise.example.com

# Super admin account (password: at least 8 characters)
SUPERADMIN_EMAIL=admin@example.com
SUPERADMIN_PASSWORD=your-admin-password

# Secrets: generate each with openssl rand -base64 32
JWT_SECRET=
REFRESH_TOKEN_SECRET=
# Required: the backend refuses to start in production without it
ENCRYPTION_KEY=
ENCRYPTION_PASSWORD=
AI_GATEWAY_INTERNAL_KEY=
EVAL_SERVER_INTERNAL_KEY=

# Encryption algorithm
ENCRYPTION_ALGORITHM=aes-256-cbc

Set FRONTEND_URL to the address people use to open VerifyWise, for example https://verifywise.example.com. Invitation and notification emails link to it, and without it they point to http://localhost:5173. You don't need BACKEND_URL: Compose connects the services to each other internally.

3. Run the installer

chmod +x ./install.sh
./install.sh

The script pulls the Docker images, starts all services and then follows their logs. Press Ctrl+C to stop following the logs; the services keep running. Then open your FRONTEND_URL in a browser.

Development setup

This runs frontend and backend separately with hot reload. You'll need 2 terminal windows. npm run watch starts the backend and the BullMQ worker together.

1. Clone and install

git clone https://github.com/bluewave-labs/verifywise.git
cd verifywise

cd Clients && npm install
cd ../Servers && npm install

2. Start PostgreSQL and Redis

The easiest way is Docker containers:

docker run -d --name mypostgres -p 5432:5432 \
  -e POSTGRES_PASSWORD=your_password postgres

docker run -d --name myredis -p 6379:6379 redis

docker exec -it mypostgres psql -U postgres -c "CREATE DATABASE verifywise;"

3. Configure and start

# Copy the example environment file
cp Servers/.env.example Servers/.env

# Terminal 1: backend with auto-restart
cd Servers && npm run watch

# Terminal 2: frontend with hot reload
cd Clients && npm run dev

Before you start the backend, set DB_PASSWORD in Servers/.env to the password you gave the PostgreSQL container, and set SUPERADMIN_EMAIL and SUPERADMIN_PASSWORD.

Frontend: http://localhost:5173. Backend API: http://localhost:3000.

Environment variables reference

VariableDescription
BACKEND_PORTPort the API is published on, for example 3000. Required.
FRONTEND_PORTPort the web app is published on, for example 8080. Required.
FRONTEND_URLAddress people use to open VerifyWise. Links in invitation and notification emails use it; when it is not set they point to http://localhost:5173
JWT_SECRETSecret for signing access tokens
REFRESH_TOKEN_SECRETSecret for signing refresh tokens
DB_USERPostgreSQL user
DB_PASSWORDPostgreSQL password. Compose passes this to the database as POSTGRES_PASSWORD, so set DB_PASSWORD, not POSTGRES_PASSWORD
DB_NAMEDatabase name, for example verifywise
SUPERADMIN_EMAILEmail address of the super admin account, created when the database is set up
SUPERADMIN_PASSWORDPassword for the super admin account, at least 8 characters

First login

The first account is the super admin you set in .env.prod with SUPERADMIN_EMAIL and SUPERADMIN_PASSWORD. It is created when the database is set up. There is no registration page.

  1. Open your VerifyWise URL in a browser
  2. Log in with SUPERADMIN_EMAIL and SUPERADMIN_PASSWORD
  3. In Super admin, create your organization and invite its first admin
  4. The admin accepts the invitation from the email link and lands on the dashboard of that organization
Protect the super admin account
The super admin account can create organizations and users. Use a strong SUPERADMIN_PASSWORD (at least 8 characters) and keep .env.prod readable only by the people who run the server.

SSL setup

For production, put a reverse proxy (Nginx, Caddy, or your cloud load balancer) in front of VerifyWise and terminate TLS there. Free certificates are available through Let's Encrypt.

  1. Install Nginx (or Caddy) on your server
  2. Obtain a certificate for your domain (Certbot handles Let's Encrypt automatically)
  3. Configure the proxy to forward traffic to ports 3000 (API) and 8080 (frontend)
  4. Set FRONTEND_URL in .env.prod to your https:// address
  5. Apply the change: docker compose -f docker-compose.yml -f docker-compose.prod.yml --env-file .env.prod up -d
Next step
Read the dashboard guide to learn how the interface is organized, then follow the quick start to create your first use case.
PreviousWelcome to VerifyWise
NextNavigating the dashboard
Installing VerifyWise - Getting started - VerifyWise User Guide