Complete Ollama Web UI implementation featuring: Frontend (SvelteKit + Svelte 5 + Tailwind CSS + Skeleton UI): - Chat interface with streaming responses and markdown rendering - Message tree with branching support (edit creates branches) - Vision model support with image upload/paste - Code syntax highlighting with Shiki - Built-in tools: get_current_time, calculate, fetch_url - Function model middleware (functiongemma) for tool routing - IndexedDB storage with Dexie.js - Context window tracking with token estimation - Knowledge base with embeddings (RAG support) - Keyboard shortcuts and responsive design - Export conversations as Markdown/JSON Backend (Go + Gin + SQLite): - RESTful API for conversations and messages - SQLite persistence with branching message tree - Sync endpoints for IndexedDB ↔ SQLite synchronization - URL proxy endpoint for CORS-bypassed web fetching - Health check endpoint - Docker support with host network mode Infrastructure: - Docker Compose for development and production - Vite proxy configuration for Ollama and backend APIs - Hot reload development setup 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
35 lines
739 B
Makefile
35 lines
739 B
Makefile
.PHONY: build run clean test deps
|
|
|
|
# Build the server binary
|
|
build:
|
|
go build -o bin/server ./cmd/server
|
|
|
|
# Run the server
|
|
run:
|
|
go run ./cmd/server
|
|
|
|
# Run with custom options
|
|
run-dev:
|
|
go run ./cmd/server -port 8080 -db ./data/dev.db
|
|
|
|
# Clean build artifacts
|
|
clean:
|
|
rm -rf bin/
|
|
rm -rf data/
|
|
|
|
# Run tests
|
|
test:
|
|
go test -v ./...
|
|
|
|
# Download dependencies
|
|
deps:
|
|
go mod download
|
|
go mod tidy
|
|
|
|
# Build for multiple platforms
|
|
build-all:
|
|
GOOS=linux GOARCH=amd64 go build -o bin/server-linux-amd64 ./cmd/server
|
|
GOOS=darwin GOARCH=amd64 go build -o bin/server-darwin-amd64 ./cmd/server
|
|
GOOS=darwin GOARCH=arm64 go build -o bin/server-darwin-arm64 ./cmd/server
|
|
GOOS=windows GOARCH=amd64 go build -o bin/server-windows-amd64.exe ./cmd/server
|