Martin Hohenberg d092c19b41 Scaffold SQLAlchemy models, routers, and Alembic migrations
- app/models/: Printer, Filament, PrintJob, Todo, PricingConfig with full
  SQLAlchemy 2.x mapped columns and relationships
- app/routers/: list + get-by-id endpoints for all five resources
- app/db.py: SQLAlchemy engine + SessionLocal + get_db dependency
- alembic/: env.py reads MYSQL_* env vars; 0001_initial_schema mirrors db.sql
- alembic.ini: script_location configured, URL injected at runtime

Since db.sql already created the tables, stamp the DB before running future
migrations:  alembic stamp head

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-18 21:19:59 +02:00

POPS — Printing Operations Production System

A web-based production management system for 3D print farms.

Features

  • Printer overview — see all printers and their current status at a glance
  • Job queue — track what is printing now and what is in the pipeline
  • Status updates & to-do lists — stay on top of ongoing work
  • Filament database — connect to and manage your filament inventory
  • Price calculator — calculate job costs
  • Print log — keep a history of completed print jobs

Stack

  • Backend: FastAPI
  • Frontend: Web UI (served by FastAPI)
  • Database: MySQL (managed via Alembic migrations)
  • Deployment: Docker

Getting Started

Prerequisites

  • Docker & Docker Compose
  • A MySQL database instance

Run

docker compose up

The application will be available at http://localhost:8720.

Database Migrations

alembic upgrade head
Description
No description provided
Readme 419 KiB
Languages
Python 54.1%
HTML 45.3%
Mako 0.4%
Dockerfile 0.2%