Files
Refactored-App/backend/README.md
2026-04-01 03:20:54 +02:00

1.0 KiB

Django Port

This is the replacement backend for the legacy FastAPI app.

Shape

  • config/: Django project settings and URL root
  • apps/accounts: users, roles, business access, device registration
  • apps/core: businesses, vendors, products, categories
  • apps/operations: invoices, inventory, events, schedules
  • apps/reporting: dashboard-facing revenue aggregates
  • apps/notifications: reminders and inbox items
  • apps/api: JSON endpoints for the Svelte frontend

Expected setup

  1. Install dependencies from pyproject.toml.
  2. Run python manage.py makemigrations.
  3. Run python manage.py migrate.
  4. Run python manage.py createsuperuser.
  5. Run python manage.py import_legacy_data.

Notes

  • Auth uses Django sessions instead of custom JWT cookies.
  • The import command consolidates both legacy SQLite files into one Django schema.
  • Password hashes are not carried over directly; imported users get a forced reset placeholder.