How terristwj/portfolio works
Project type and purpose
• This is a full-stack, serverless portfolio website built with Next.js (App Router).
• It delivers predominantly static content (homepage, projects pages) plus a dynamic Guestbook feature backed by a cloud database (Vercel Postgres) and an AI-powered filter (OpenAI API).
File structure
• Top-level directories:
• app/ – Next.js “app” folder containing UI pages, layouts, components and edge API routes.
• data/ – Static JSON (guestbook entries in development, project metadata).
• public/ – Static assets (project images).
• API routes under app/api/guestbook:
• guest and admin sub-folders each with MessageActions.ts (DB logic) and route.ts (HTTP handlers).
• Configuration and build scripts: next.config.js, tailwind.config.ts, postcss.config.js, tsconfig.json, package.json.
README for additional insights
• Confirms use of Next.js, TailwindCSS, Framer Motion, Vercel hosting & analytics, Vercel Postgres, OpenAI API.
• Describes environment variables (.env) for Postgres and OpenAI credentials.
• References @vercel/postgres client usage in API routes.