A simple, containerized backend service for managing board data with in-memory storage.
- In-memory data storage
- RESTful API endpoints
- Bearer token authentication
- Docker support
- Single-user focused
GET /active- List all active boardsPOST /refresh/:bid- Update board dataPOST /update/:bid- Remove a boardGET /alive- Health check
- Rust
- Docker (optional, for containerization)
HOST- Server host (default: "0.0.0.0")PORT- Server port (default: "3000")BACKEND_API_KEY- API key for authentication (required)
-
Set environment variables:
set BACKEND_API_KEY=your-api-key -
Build and run:
cd backend cargo build cargo run
-
Build the container:
cd backend docker build -t tavla-backend .
-
Run the container:
docker run -p 3000:3000 -e BACKEND_API_KEY=your-api-key tavla-backend
All endpoints require Bearer token authentication. Include the API key in the Authorization header:
Authorization: Bearer your-api-key