Michael Chus 184f54b663 refactor: привести кодовую базу в соответствие с канонами bible
- 400 → 422 для всех ошибок валидации входных данных (handlers: export, quote, sync, vendor_spec, partnumber_books, pricelist)
- SQL-запросы вынесены из handlers в localdb (partnumber_books, pricelist, support_bundle); ValidateMariaDBConnection перенесён в internal/db/validate.go
- List-ответы унифицированы: ключ items, поля total_count/page/per_page/total_pages (component, pricelist, partnumber_books); шаблоны обновлены
- Молчаливые ошибки заменены на slog.Warn/Error (support_bundle, vendor_spec, component, configuration, local_configuration, localdb)
- N+1 запросы устранены: batch-запросы в export.go и vendor_workspace_import.go
- fmt.Println → slog в cmd/ (qfs, migrate, migrate_ops_projects, migrate_project_updated_at)
- Заголовки recovery/verify добавлены во все 28 SQL-миграций
- Добавлены bible-local/runtime-flows.md и bible-local/decisions/
- Обновлён субмодуль bible до v0.2.0-13

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 14:38:01 +03:00
2026-06-02 14:31:32 +03:00
2026-03-01 16:57:50 +03:00
2026-03-01 16:57:50 +03:00
2026-01-22 17:29:47 +03:00
2026-02-18 07:02:17 +03:00

QuoteForge

Local-first desktop web app for server configuration, quotation, and project work.

Runtime model:

  • user work is stored in local SQLite;
  • MariaDB is used only for setup checks and background sync;
  • HTTP server binds to loopback only.

What the app does

  • configuration editor with price refresh from synced pricelists;
  • projects with variants and ordered configurations;
  • vendor BOM import and PN -> LOT resolution;
  • revision history with rollback;
  • rotating local backups.

Run

go run ./cmd/qfs

Useful commands:

go run ./cmd/qfs -migrate
go test ./...
go vet ./...
make build-release

On first run the app creates a minimal config.yaml, starts on http://127.0.0.1:8080, and opens /setup if DB credentials were not saved yet.

Documentation

bible-local/ is the source of truth for QuoteForge-specific architecture. If code changes behavior, update the matching file there in the same commit.

Repository map

cmd/                  entry points and migration tools
internal/             application code
web/                  templates and static assets
bible/                shared engineering rules
bible-local/          project architecture and contracts
releases/             packaged release artifacts and release notes
config.example.yaml   runtime config reference
Description
No description provided
Readme 227 MiB
v1.12 Latest
2026-06-03 13:46:24 +03:00
Languages
Go 64.8%
HTML 34.5%
Shell 0.4%
Makefile 0.3%