Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TheDeveloperDen/DevBin

Repository files navigation

DevBin

A lightweight pastebin service built with FastAPI and Svelte.

Quick Development Start

git clone https://github.com/TheDeveloperDen/DevBin.git
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:all 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

AltStyle によって変換されたページ (->オリジナル) /