Files
palace/server
2025-07-19 00:55:13 +02:00
..
2025-07-19 00:55:13 +02:00
2025-07-19 00:55:13 +02:00
2025-07-19 00:55:13 +02:00

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 spaces
  • GET /api/spaces/{id} - Get space by ID
  • PUT /api/spaces/{id} - Save/update space
  • DELETE /api/spaces/{id} - Delete space
  • POST /api/spaces/{id}/notes - Add note to space
  • PATCH /api/spaces/{spaceId}/notes/{noteId} - Update note
  • DELETE /api/spaces/{spaceId}/notes/{noteId} - Delete note