document deployment
This commit is contained in:
30
server/README.md
Normal file
30
server/README.md
Normal 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
|
||||
Reference in New Issue
Block a user