Palace Server
Minimal Go API server with SQLite for Palace collaborative features.
Setup
cd server
go mod tidy
go run main.go
Server runs on port 3001 by default (set PORT env var to change).
Resource Usage
- Single binary (~10MB)
- SQLite database file
- Minimal memory footprint
- No external dependencies in production
API Endpoints
GET /api/spaces- List all spacesGET /api/spaces/{id}- Get space by IDPUT /api/spaces/{id}- Save/update spaceDELETE /api/spaces/{id}- Delete spacePOST /api/spaces/{id}/notes- Add note to spacePATCH /api/spaces/{spaceId}/notes/{noteId}- Update noteDELETE /api/spaces/{spaceId}/notes/{noteId}- Delete note