| title | Getting Started |
|---|---|
| description | Installation and setup guide for Visory |
This guide will help you get Visory up and running on your local machine for development and testing.
- Go 1.24 or higher
- Bun (JavaScript runtime)
- libvirt (for QEMU/KVM support)
- Docker (optional, for container management)
git clone https://github.com/your-org/visory.git
cd visoryCopy the example environment file and configure it:
cp .env.example .envEdit .env with your settings:
# Server Configuration
PORT=9999
APP_ENV=development
# Database
BLUEPRINT_DB_DATABASE=visory.db
# Session Secret (required)
SESSION_SECRET="your-random-secret-key"
# OAuth (optional, see Authentication docs)
GOOGLE_OAUTH_KEY="your-google-client-id"
GOOGLE_OAUTH_SECRET="your-google-client-secret"Generate a secure session secret:
openssl rand -base64 32# Install Go dependencies
go mod download
# Install frontend dependencies
cd frontend && bun install && cd ..Run both backend and frontend in tmux:
make tmuxOr run them separately:
# Terminal 1: Backend with hot reload
make back
# Terminal 2: Frontend dev server
make front# Backend
go run ./cmd/api/main.go
# Frontend (in another terminal)
cd frontend && bun run dev- Frontend: http://localhost:5173
- Backend API: http://localhost:9999/api
- API Documentation: http://localhost:9999/api/docs/swagger
| Command | Description |
|---|---|
make build |
Build the Go application |
make test |
Run the test suite |
make back |
Run backend with hot reload (air) |
make front |
Run frontend dev server |
make tmux |
Run both in tmux split |
make clean |
Clean build artifacts |
make gen-mig |
Generate database migration |
visory/
├── cmd/api/ # Application entry point
├── internal/
│ ├── database/ # Database queries and migrations
│ ├── models/ # Data models and types
│ ├── server/ # HTTP server and routes
│ ├── services/ # Business logic
│ └── storage/ # Storage utilities
├── frontend/
│ ├── src/
│ │ ├── components/ # UI components
│ │ ├── routes/ # Page routes
│ │ ├── stores/ # Zustand stores
│ │ └── lib/ # Utilities and API clients
│ └── public/
├── docs/ # API documentation (Swagger)
└── scripts/ # Utility scripts
- Authentication - Set up OAuth and user authentication
- RBAC - Configure role-based access control
- Docker Management - Manage Docker containers
- Virtual Machines - Manage QEMU/KVM VMs