A lightweight pastebin service built with FastAPI and Svelte.
git clone <repository-url>
cd DevBin
cp .env.example .env # Configure as needed
task dev:up # Start all services
task db:migrate # Run migrationsAccess:
- Frontend: http://localhost:3000
- API Docs: http://localhost:8000/docs
- Health: http://localhost:8000/health
Run task --list for all available commands.
| Command | Description |
|---|---|
task dev:up |
Start all dev services |
task dev:down |
Stop all dev services |
task dev:logs |
Tail logs |
task dev:reset |
Reset with fresh volumes |
task db:migrate |
Run migrations |
task db:shell |
PostgreSQL shell |
task test |
Run all tests |
task prod:up |
Start production |
task prod:down |
Stop production |
task clean |
Remove containers and volumes |
See .env.example for all options. Key settings:
| Variable | Description |
|---|---|
APP_PORT |
API port (default: 8000) |
APP_MAX_CONTENT_LENGTH |
Max paste size |
APP_STORAGE_TYPE |
local, s3, or minio |
APP_CACHE_TYPE |
memory or redis |
Full reference: docs/configuration.md
| Endpoint | Description |
|---|---|
GET /health |
Health check |
GET /metrics |
Prometheus metrics |
POST /pastes |
Create paste |
GET /pastes/{id} |
Get paste |
DELETE /pastes/{id} |
Delete paste |
Interactive docs at /docs when running.
- Backend: FastAPI, SQLAlchemy, PostgreSQL
- Frontend: Svelte
- Deployment: Docker Compose