Skip to content

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.

CommandDescription
task dev:upStart all dev services
task dev:downStop all dev services
task dev:logsTail logs
task dev:resetReset with fresh volumes
task db:migrateRun migrations
task db:shellPostgreSQL shell
task test:allRun all tests
task prod:upStart production
task prod:downStop production
task cleanRemove containers and volumes

Configuration

See .env.example for all options. Key settings:

VariableDescription
APP_PORTAPI port (default: 8000)
APP_MAX_CONTENT_LENGTHMax paste size
APP_STORAGE_TYPElocal, s3, or minio
APP_CACHE_TYPEmemory or redis

Full reference: docs/configuration.md

API

EndpointDescription
GET /healthHealth check
GET /metricsPrometheus metrics
POST /pastesCreate 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

Packages

Contributors

Languages