How cedzzzzzzzzz/cedz-portfoliowebsite works
This repository is a static personal portfolio with a Netlify-hosted AI chat backend. A visitor browses portfolio content and can use the chat interface to ask questions; the chat handler validates and rate-limits requests, supplies approved portfolio facts to a Gemini-backed provider, and returns a reply. The site also presents projects, skills, experience, and credentials, with downloadable CV/certificate documents and project imagery. Frontend/backend chat wiring is only partially shown, so that link is marked unverified; other edges follow the excerpts or README.
Main entry points: index.html Portfolio page · chat.ts Chat endpoint · gemini.ts Gemini provider · script.js Chat interface
Components 15
Portfolio site
- Portfolio page
index.html - Responsive styling
styles.css - Site interactions
script.js - Chat interface
script.js
Portfolio content
- Project imagery
Project_Screenshots - Portrait images
Myself_Pics - CV and certificates
CV - Portfolio facts
netlify/data/facts.ts
Chat service
- Chat endpoint
netlify/functions/chat.ts - Health endpoint
netlify/functions/health.ts - Request limiter
netlify/lib/rateLimiter.ts - Provider contract
netlify/lib/provider.ts - Gemini provider
netlify/lib/gemini.ts
External services
- Google Gemini
Other components
- Visitor
Connections 14
- Visitor → Portfolio page: browses
README.md - Portfolio page → Responsive styling: styled by
README.md - Portfolio page → Site interactions: enhanced by
README.md - Portfolio page → Project imagery: presents
README.md - Portfolio page → Portrait images: presents
README.md - Portfolio page → CV and certificates: links to
README.md - Visitor → Chat interface: asks questions
- Chat interface → Chat endpoint: posts message
- Chat endpoint → Request limiter: checks limit
netlify/functions/chat.ts - Chat endpoint → Portfolio facts: serializes facts
netlify/functions/chat.ts - Chat endpoint → Gemini provider: requests reply
netlify/functions/chat.ts - Gemini provider → Provider contract: implements
netlify/lib/gemini.ts - Gemini provider → Google Gemini: generates response
netlify/lib/gemini.ts - Chat endpoint → Visitor: returns response
netlify/functions/chat.ts