Skip to content

Development Setup

Prerequisites

  • Go 1.23+
  • Node.js 20+
  • npm

Clone and Setup

git clone https://github.com/ProductBuildersHQ/visionstudio.git
cd visionstudio

Build Go Daemon

go mod tidy
go build -o bin/daemon ./cmd/daemon/

Install Frontend Dependencies

cd desktop
npm install

Development Workflow

Terminal 1: Go Daemon

./bin/daemon

Terminal 2: Vite Dev Server

cd desktop
npm run dev:renderer

Terminal 3: Electron

cd desktop
npm run dev:main

Or use the combined command:

cd desktop
npm run dev

Hot Reload

  • Frontend: Vite provides instant hot reload
  • Go Daemon: Restart manually after changes

Building for Production

# Build Go daemon
go build -o bin/daemon ./cmd/daemon/

# Build frontend
cd desktop
npm run build

# Package Electron app (TODO)

Running Tests

# Go tests
go test ./...

# Frontend tests (TODO)
cd desktop && npm test