Repository navigation
feat(app): MVP-scaffold — FastAPI-proxy + chat-UI + Docker/Caddy - #23
Merged
Merged
Conversation
Gebouwd op het #14-prototype, nu productievorm: - main.py: /chat (Mistral Conversations API; stub-mode zonder key), /feedback, /healthz; security headers (CSP frame-ancestors 'self', géén X-Frame-Options — post-MVP iframe via FRAME_ANCESTORS, #14) - rate limiting 10/uur per anonieme client-ID (in-memory), max 1000 tekens, géén IP-logging - store.py: SQLite-feedback, content ALLEEN bij duim-omlaag, retentie 30 dagen met automatische purge; duim-omhoog = kale teller - mistral_client.py: dunne API-laag (mockbaar in tests) - static/index.html: responsive mobile-first UI met privacy-notitie en feedbackknoppen (uit prototype branch) - Dockerfile + docker-compose.yml + Caddyfile voor wtchat.famstieltjes.nl - tests/test_app.py: 10 offline tests, allemaal groen (pytest app/tests) Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
De MVP-scaffold van wayfinder-map #2: een complete, deploybare webapp onder
app/— FastAPI-proxy vóór de Mistral Agents API, chat-UI op dezelfde origin, Docker + Caddy voor automatische HTTPS.Rebase note: de branch was gemaakt vóór PR #16; gerebased op main, waardoor de diff nu puur additief is (13 nieuwe bestanden, +937/−0) en de RAG-sync scripts/docs ongemoeid blijven.
Evidence
app/test-suite:.venv/Scripts/python -m pytest app/tests/ -q→ 10 passed. Repo-suite blijft groen:pytest tests/ -q→ 10 passed. Secrets-grep op app/ (gitleaks-patroon) → geen treffers; API-key alleen viaos.getenv.Merge Danger
Door: two-way (nieuwe directory
app/, raakt geen bestaande code aan; revert = directory weg).Blast Radius: app only — geen CI-wijzigingen, geen bestaande paden aangepast. Deploy zelf (VPS, .env, domein) is een aparte handmatige stap en zit niet in deze PR.
Closes #8