No description
|
Some checks are pending
Docker Test / test (push) Waiting to run
This commit adds comprehensive unit tests for the role-based access control middleware and fixes the ES module export issue. The tests verify that users with correct roles can access protected routes, while users with incorrect roles or no authentication are properly denied access. |
||
|---|---|---|
| .github/workflows | ||
| backend | ||
| docs | ||
| issues | ||
| node_modules | ||
| scripts | ||
| test | ||
| .gitignore | ||
| CONTRIBUTING.md | ||
| demo-happy-path.sh | ||
| docker-compose.test.yml | ||
| Dockerfile.test | ||
| ISSUE-12.md | ||
| ISSUE-123.md | ||
| ISSUE-124.md | ||
| ISSUE-TEMPLATE.md | ||
| issue_10.md | ||
| ISSUE_TEMPLATE.md | ||
| NEXT_STEPS.md | ||
| openapi.yaml | ||
| package-lock.json | ||
| package.json | ||
| PLAYWRIGHT_ISSUE.md | ||
| PROJECT_SUMMARY.md | ||
| README.md | ||
| STATUS.md | ||
| tailscale_integration_status.md | ||
| tailscale_kasm_integration.md | ||
| tailscale_kasm_integration_detailed.md | ||
| tailscale_sidecar_final.md | ||
| tailscale_sidecar_integration.md | ||
| TESTING.md | ||
helpyourneighbour
Erster funktionaler Backend-Stand für die Vision:
- Nutzerregistrierung und Login (
/auth/register,/auth/login) - Hilfeanfragen erstellen/listen (
/requests) - Angebote + Gegenangebote + Deal-Annahme (
/offers/...) - Bewertungsgrundlage mit 2-14 Tage Prompt-Fenster (
/reviews/:dealId) - Datenmodell inkl. postalischer Adress-Verifikation (
backend/sql/schema.sql) - Address-Change-Flow mit Briefcode (
/addresses/change-request,/addresses/verify) - Kontaktdatenaustausch nach Deal (
/contacts/request,/contacts/respond,/contacts/deal/:dealId) - Serverseitige AES-256-GCM-Verschlüsselung für Adresse/Telefon (
DATA_ENCRYPTION_KEY)
Docker-Test (Unraid Host)
./scripts/test-in-docker.sh
Start
cd backend
cp .env.example .env
npm install
npm run db:init
npm run start
Forgejo Tasks
- #1 Backend Grundgerüst + Auth API
- #2 Datenmodell für Request/Offer/Negotiation/Deal
- #3 Bewertungssystem 2-14 Tage Verzögerung
- #4 Adressänderung nur per Briefbestätigung
API Governance
-
Dispute-Flow Doku:
docs/dispute-flow.md -
OpenAPI:
openapi.yaml(Spiegel:docs/openapi.yaml) -
Versioning/Deprecation Policy:
docs/api-versioning.md -
Rollen- und Rechtekonzept:
docs/roles-and-permissions.md
Development Quickstart (auto-synced)
cd backend
npm install
npm run test:unit
npm run start
Projektstruktur
Das Projekt besteht aus folgenden Hauptkomponenten:
backend/- Node.js Backend mit Expressdocs/- Dokumentation und ADRsscripts/- Hilfsskripte für Tests und Deploymentfrontend/- (geplant) React Frontend
Sicherheit
Alle sensiblen Daten werden serverseitig verschlüsselt. Die Verschlüsselung erfolgt mit AES-256-GCM.
Lizenz
Dieses Projekt ist unter der MIT-Lizenz lizenziert - siehe die LICENSE-Datei für weitere Informationen.