Compare commits
2 Commits
bf6f5456d6
...
47cfc67ef4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
47cfc67ef4 | ||
|
|
65157da61d |
@@ -1,4 +1,9 @@
|
||||
- auth
|
||||
- login user
|
||||
- register user
|
||||
- chnage password
|
||||
-
|
||||
-
|
||||
|
||||
- registration, login, refresh, logout, password change, own profile
|
||||
- routes: POST /register, /login, /refresh, /logout, /change-password; GET/PUT /me
|
||||
- events emit: user.registered, user.logged_in
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
- __init__.py (router, on_load)
|
||||
- __init__.py:
|
||||
- models.py (User, RefreshToken)
|
||||
- manifest.yaml
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
- core-apps
|
||||
- shipped with the system, required for a functional shop
|
||||
- same mechanics as any other app (manifest.yaml, router, migrations, events, DI) — no special status in the loader
|
||||
- typically declared `required: true` in manifest so they cannot be switched off
|
||||
- distinct from custom-apps (optional / third-party, not shipped)
|
||||
- cover: auth, product catalog, cart, checkout, payment, orders, mail, shipment (planned), plus the AI layer (ai_core, ai_shop, ai_admin)
|
||||
- auth
|
||||
- manage users
|
||||
- login user
|
||||
- register user
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
- auth
|
||||
- catalog
|
||||
- cart
|
||||
- checkout
|
||||
- payment
|
||||
- orders
|
||||
- mail
|
||||
- ai_core
|
||||
- ai_shop
|
||||
- ai_admin
|
||||
- shipment (planned, not implemented)
|
||||
- hashing: argon2
|
||||
- token: JWT (15m/30d)
|
||||
- events
|
||||
- user.registered
|
||||
- user.logged_id
|
||||
1
doc/core/features.md
Normal file
1
doc/core/features.md
Normal file
@@ -0,0 +1 @@
|
||||
- setup für den shop
|
||||
7
doc/core/specs.md
Normal file
7
doc/core/specs.md
Normal file
@@ -0,0 +1,7 @@
|
||||
- main — anwendung starten
|
||||
- loader — apps laden
|
||||
- config — liest zugänge aus env
|
||||
- di — direkte apps kommunikation
|
||||
- events — indirekte apps kommunikation
|
||||
- db — datenbank kommunikation
|
||||
- cache — redis kommunikation
|
||||
6
doc/systems/authentication/features.md
Normal file
6
doc/systems/authentication/features.md
Normal file
@@ -0,0 +1,6 @@
|
||||
- authentication
|
||||
- "who are you?"
|
||||
- password hashing with argon2
|
||||
- JWT (15 min access) with refresh (30 days)
|
||||
- identity dependencies (current_user_claims, optional_user, get_current_user_id, oauth2_scheme)
|
||||
- room for growth: OAuth/SSO, API-tokens for third-party apps, 2FA, refresh-token rotation, impersonation
|
||||
1
doc/systems/authentication/specs.md
Normal file
1
doc/systems/authentication/specs.md
Normal file
@@ -0,0 +1 @@
|
||||
- authentication.py
|
||||
4
doc/systems/authorization/features.md
Normal file
4
doc/systems/authorization/features.md
Normal file
@@ -0,0 +1,4 @@
|
||||
- authorization
|
||||
- "what are you allowed to do?"
|
||||
- role checks (require_admin today)
|
||||
- room for growth: require_role, require_permission, per-resource checks (owner-of), B2B approval workflows, per-app permissions for marketplace apps
|
||||
1
doc/systems/authorization/specs.md
Normal file
1
doc/systems/authorization/specs.md
Normal file
@@ -0,0 +1 @@
|
||||
- authorization.py
|
||||
2
doc/systems/features.md
Normal file
2
doc/systems/features.md
Normal file
@@ -0,0 +1,2 @@
|
||||
- basis für apps
|
||||
- sammelt logik der apps und führt sie aus
|
||||
2
doc/systems/i18n/features.md
Normal file
2
doc/systems/i18n/features.md
Normal file
@@ -0,0 +1,2 @@
|
||||
- i18n
|
||||
- internationalisation helper for DE/EN text fields
|
||||
1
doc/systems/i18n/specs.md
Normal file
1
doc/systems/i18n/specs.md
Normal file
@@ -0,0 +1 @@
|
||||
- i18n.py
|
||||
4
doc/systems/middleware/features.md
Normal file
4
doc/systems/middleware/features.md
Normal file
@@ -0,0 +1,4 @@
|
||||
- middleware
|
||||
- central place to install FastAPI middlewares (install_middlewares(app))
|
||||
- today: CORS (allowed origins from .env)
|
||||
- room for growth: request-id, access logging, rate-limit, security headers (HSTS/CSP), compression
|
||||
1
doc/systems/middleware/specs.md
Normal file
1
doc/systems/middleware/specs.md
Normal file
@@ -0,0 +1 @@
|
||||
- middleware.py
|
||||
5
doc/systems/migrations/features.md
Normal file
5
doc/systems/migrations/features.md
Normal file
@@ -0,0 +1,5 @@
|
||||
- migrations
|
||||
- orchestrator (migrations.py): discover per-app migration folders (apps/<name>/migrations/), configure alembic version_locations dynamically, coordinate multi-head merging
|
||||
- startup check: fail fast if schema is not up to date
|
||||
- migrations/ directory: alembic version store (today still holds all migrations centrally; per-app folders are the target state)
|
||||
- use alembic
|
||||
2
doc/systems/migrations/specs.md
Normal file
2
doc/systems/migrations/specs.md
Normal file
@@ -0,0 +1,2 @@
|
||||
- migrations.py
|
||||
- migrations/ (Alembic version store)
|
||||
2
doc/systems/seed/features.md
Normal file
2
doc/systems/seed/features.md
Normal file
@@ -0,0 +1,2 @@
|
||||
- seed
|
||||
- demo data (admin, demo customer, categories, products)
|
||||
1
doc/systems/seed/specs.md
Normal file
1
doc/systems/seed/specs.md
Normal file
@@ -0,0 +1 @@
|
||||
- seed.py
|
||||
6
doc/systems/settings/features.md
Normal file
6
doc/systems/settings/features.md
Normal file
@@ -0,0 +1,6 @@
|
||||
- settings
|
||||
- key-value store for shop settings (runtime-changeable, e.g. shop_name, currency)
|
||||
- postgres is source of truth
|
||||
- mirrored to redis on write
|
||||
- emits core.settings_updated event
|
||||
- distinct from config (which only reads .env infrastructure values)
|
||||
1
doc/systems/settings/specs.md
Normal file
1
doc/systems/settings/specs.md
Normal file
@@ -0,0 +1 @@
|
||||
- settings.py
|
||||
11
doc/systems/specs.md
Normal file
11
doc/systems/specs.md
Normal file
@@ -0,0 +1,11 @@
|
||||
- controller - routes und aktionen
|
||||
- model - datenbank tabellen
|
||||
- migration — migrationen
|
||||
- event - eigene events
|
||||
- subscriber - listener
|
||||
- setting — shop konfigurationen
|
||||
- authentication — zugriff
|
||||
- authorization — rechte
|
||||
- middleware — request und response filter
|
||||
- seed — faker daten
|
||||
- i18n — übersetzungen
|
||||
Reference in New Issue
Block a user