Skip to content

TheDeveloperDen/DevBin

Repository files navigation

DevBin

A lightweight pastebin service built with FastAPI and Svelte.

Quick Start

git clone <repository-url>
cd DevBin
cp .env.example .env      # Configure as needed
task dev:up               # Start all services
task db:migrate           # Run migrations

Access:

Commands

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

Configuration

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

API

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.

Documentation

Tech Stack

  • Backend: FastAPI, SQLAlchemy, PostgreSQL
  • Frontend: Svelte
  • Deployment: Docker Compose

Releases

No releases published

Packages

 
 
 

Contributors 2

  •  
  •