Getting Started with Local Development

This guide runs DBO Studio on your machine: API, web UI, optional sample databases, and the desktop app.

Prerequisites

ToolVersionNeeded for
Go1.23 or newerAPI
Node.js20.12.2 or newerUI and build
DockeroptionalSample Postgres / MySQL
Rust + WebView depsstableDesktop only

Run the API

From the backend directory:

bash
cd backend
cp .env.example .env
go run .

The .env copy is optional — defaults are enough for local work. The API listens on http://localhost:8080 unless you set APP_PORT. See Configuration.

go run . serve is the same command.

For hot reload, run Air in that directory.

Run the UI

bash
cd frontend
cp .env.example .env
npm install
npm run dev

Vite serves http://localhost:3000 and proxies API calls to http://localhost:8080/api when VITE_PUBLIC_SERVER_URL is unset.

Sample databases

If the API and UI already run on the host, start only the sample engines:

bash
docker compose -f docker-compose.dev.yml up -d sample-pgsql sample-mysql
EngineHostCredentials
Postgreslocalhost:5432default / secret, database default
MySQLlocalhost:3307default / secret, database default

To run API, UI, and samples together:

bash
docker compose -f docker-compose.dev.yml up -d

Note: That Compose file is for development. Production is a single image — see Docker.

If a port is already taken on your machine, override the host port when you start the samples:

bash
DB_TEST_PORT=15432 MYSQL_TEST_PORT=13307 \
docker compose -f docker-compose.dev.yml up -d sample-pgsql sample-mysql
VariableDefaultSample
DB_TEST_PORT5432Postgres
MYSQL_TEST_PORT3307MySQL
PGSQL_SSL_TEST_PORT5433Postgres with TLS

Locally the API runs without login. To work on login, set APP_AUTH_MODE=local in backend/.env. See Authentication and users.

Desktop

From the repository root:

bash
make desktop-dev

This builds the backend sidecar and starts the Tauri dev app.

Next steps

Previous

Security Model

Next

Building from Source and Packaging