VoxelPulse

Run locally

Start the frontend, backend, and database with Docker.

Before you begin

Install Git and Docker with the Compose plugin, and start your Docker daemon. The development stack runs PostgreSQL, FastAPI, and Vite. Commands below use a POSIX shell from the repository root.

git clone https://github.com/healthonrails/voxelpulse.git
cd voxelpulse
cp .env.example .env

If you already have a checkout or environment file, keep it and update its values. Set your database credentials, two different generated secrets for JWT_SECRET and CSRF_SECRET_KEY, ENVIRONMENT=development, PORT=8000, and POSTGRES_HOST=db. Use URL-safe database credentials or URL-encode the password in DATABASE_URL.

Generate each secret separately:

python3 -c "import secrets; print(secrets.token_hex(32))"

Start the stack

docker info
mkdir -p data/zarr "$HOME/Downloads/app_data"
docker compose -f docker-compose.dev.yml up --build

The current development Compose configuration enables backend migrations on startup and waits for database readiness. The first build may take several minutes. Keep the command running or add -d for background services.

ServiceAddress
Applocalhost:5173
Backend healthlocalhost:8000/health
Interactive API referencelocalhost:8000/docs

Create an account, sign in, and open your workspace. Google OAuth and Ollama are optional; email/password accounts do not need them.

Verify and stop

docker compose -f docker-compose.dev.yml ps
curl --fail http://localhost:8000/health
curl --fail http://localhost:5173/api/v1/openapi.json
docker compose -f docker-compose.dev.yml down

The proxy check exercises the frontend-to-backend connection. The health endpoint alone does not verify account/database operations. The stop command retains named volumes.

Run without frontend/backend containers

Use Python 3.14.10 with .venv and the Node.js version pinned in frontend/.nvmrc. Keep PostgreSQL in Docker and set a literal DATABASE_URL using 127.0.0.1 in root .env. For the example credentials, use DATABASE_URL=postgresql+psycopg2://voxelpulse:pwd@127.0.0.1:5432/voxelpulse and match it to your chosen database credentials. Start the database and backend.

docker compose -f docker-compose.dev.yml up -d db
python3.14 -m venv .venv
.venv/bin/python -m pip install -r backend/requirements.txt
(cd backend && ../.venv/bin/python -m alembic upgrade head)
.venv/bin/python -m uvicorn backend.app.main:app --env-file .env --host 127.0.0.1 --port 8000 --reload

In another terminal:

cd frontend
npm install
npm run dev

Reuse an existing Python 3.14.10 environment. Host Vite uses http://127.0.0.1:8000; the Docker frontend uses http://backend:8000. See the repository README and backend README for maintenance and optional services.