A modern portfolio and personal brand website built with Next.js, TypeScript, Tailwind CSS, Prisma, and PostgreSQL. It includes a polished marketing homepage, project showcases, case study pages, admin dashboard, and an AI-powered portfolio assistant.
This project is designed to serve as a professional portfolio platform for showcasing:
- work experience and skills
- featured projects and case studies
- AI-assisted portfolio interaction
- admin-managed content updates
- production-ready deployment configuration
- Next.js 16
- React 19
- TypeScript
- Tailwind CSS
- Prisma ORM
- PostgreSQL / Neon
- NextAuth / Auth.js
- Docker support
- Responsive portfolio landing page
- Premium hero section and product-style presentation
- Project showcase pages and case study detail views
- Light and dark mode support
- Admin authentication and content management
- Skills, projects, profile, and experience management
- AI portfolio assistant with chat experience
- PostgreSQL-backed data layer
- Deployment-ready Docker configuration
.
├── app/ # App router pages and API routes
├── components/ # Reusable UI components
├── lib/ # Shared utilities and helpers
├── prisma/ # Prisma schema and seed data
├── public/ # Static assets
├── scripts/ # Utility scripts
├── .env.example # Environment variable template
├── Dockerfile # Docker image definition
├── docker-compose.yml # Local container setup
├── DEPLOYMENT.md # Deployment notes
├── package.json # Scripts and dependency configuration
├── next.config.ts # Next.js configuration
├── tsconfig.json # TypeScript config
└── README.md # Project documentation
Before you begin, make sure you have:
- Node.js 20+
- npm 10+
- A PostgreSQL-compatible database (local or hosted, such as Neon, Supabase, Railway, or a managed Postgres service)
- A valid AI provider key if you want the chatbot enabled
npm installCopy the example environment file and update it with your own values:
cp .env.example .envAt minimum, set:
DATABASE_URL="postgresql://user:password@host:5432/database?sslmode=require"
DIRECT_URL="postgresql://user:password@host:5432/database?sslmode=require"
AUTH_SECRET="your-long-random-secret"
ADMIN_EMAIL="admin@portfolio.dev"
ADMIN_PASSWORD="change-this-password"
OPENROUTER_API_KEY="your-api-key"
OPENROUTER_MODEL="openrouter/free"
NEXT_PUBLIC_SITE_URL="http://localhost:3000"Important:
- Do not commit
.envto version control - Use secure values in production
- Keep secrets in your hosting provider's secret manager whenever possible
npm run db:generate
npm run db:pushIf you want the seeded portfolio data:
npm run db:seedOr run the combined setup:
npm run db:setupnpm run devThen open:
http://localhost:3000
To validate the app before deployment:
npm run typecheck
npm run buildThen run the production server:
npm run startIf you want to inspect the app with a production build locally, use:
npm run build
npm run startOnce the application is running, access the admin dashboard at:
/admin/login
Use the credentials from your .env file:
ADMIN_EMAILADMIN_PASSWORD
This project is well suited for a modern deployment flow with:
- Vercel for the Next.js app
- Neon or another managed PostgreSQL service for the database
Recommended steps:
- Push the repository to GitHub
- Import the project into Vercel
- Add all required environment variables in the Vercel dashboard
- Connect a PostgreSQL database and set
DATABASE_URLandDIRECT_URL - Set
AUTH_SECRET,ADMIN_PASSWORD, andOPENROUTER_API_KEY - Deploy the project
A Docker setup is included for containerized deployment.
Build and run locally:
docker compose up --build -dFor production hosting, deploy the same container to a VPS, Docker-capable host, or a cloud runtime that supports persistent storage.
The app can also be deployed to managed hosting providers that support:
- Node.js app runtime
- PostgreSQL database
- environment variables / secrets
- persistent filesystem if needed
Before production launch:
- rotate
AUTH_SECRET - update admin credentials
- configure real site URLs
- confirm AI API keys are valid
- verify the health endpoint and admin login flow
The project includes a health check endpoint for deployment verification.
/api/health
npm run dev
npm run build
npm run start
npm run lint
npm run typecheck
npm run db:generate
npm run db:push
npm run db:seed
npm run db:setup
npm run db:studio- This portfolio is built as a production-ready personal platform rather than a generic template.
- The app is optimized for easy customization of personal brand content, portfolio items, and admin-managed sections.
- Use environment variables and secret storage for all production credentials.
This project is private and intended for personal portfolio use unless otherwise specified.