document deployment

This commit is contained in:
2025-07-19 00:55:13 +02:00
parent 051c291b8c
commit 178f5c517d
12 changed files with 643 additions and 71 deletions

30
server/README.md Normal file
View File

@ -0,0 +1,30 @@
# Palace Server
Minimal Go API server with SQLite for Palace collaborative features.
## Setup
```bash
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