How heypranjal/pranjalsportfolio works
Project type and purpose
• This is a full-stack, server-rendered portfolio website built on Next.js (App Router).
• It serves static/dynamic pages (about, projects, stats, contact, etc.), uses server actions and API routes for data operations, and integrates with external services (GitHub, e-mail).
File structure
• app/ – Next.js App Router: pages (server and client components), server actions (in app/actions), API routes (app/api).
• components/ & components/ui/ – shared React components and UI primitives (shadcn/ui + Tailwind).
• lib/ – reusable Node-side helpers (database connection, code highlighting, utils).
• model/ – database schemas/models (loveCount, views).
• hooks/, config/, constants/ – client-side hooks, site configuration, constants.
• public/ – static assets.
• next.config.ts, postcss.config.mjs, tsconfig.json, etc. – build & deploy configuration.
Key insights from README
• Tech stack: Next.js, shadcn/ui on Tailwind CSS, TypeScript; deployed on Vercel.
• Live site integrates real-time counters (love, views), GitHub stats, and a contact form.