nikunjramani.in — Full-stack Portfolio Platform
This site: Next.js front end, Python API, schema-first, Terraform-managed
- Status
- Maintained
- Timeline
- 2026 · ongoing
- Kind
- Personal
- Role
- Sole Developer
Overview
The site you're reading, built as a production-grade, reusable template that anyone can fork to create their own portfolio — or to learn modern full-stack development. Public pages are server-rendered with Next.js 16 and TypeScript, styled with Tailwind and shadcn/ui, and SEO-ready with structured data, a sitemap and dynamic Open Graph images. Content is edited through an admin panel on the site, with live preview, a media library, a messages inbox, autosave and an audit trail.
Approach
One Python FastAPI service on Cloud Run owns every read and write. The frontend has no database access at all, and Firestore rules deny every client write, so validation, rate limiting, visibility rules and audit logging can't be bypassed. JSON Schema is the single source of truth: code generation produces the Pydantic models, TypeScript types, Zod validators and admin forms, and CI fails if any of them drift. Infrastructure is managed with Terraform; merging to main deploys through CI with smoke tests and automatic rollback, and pull requests get preview deploys on a separate staging project. Every architectural choice is recorded as an ADR in the public repo.
Architecture
- Public site + admin
- Server-rendered pages; admin on its own surfaceNext.js 16 · TypeScript
- API
- Every read and write, split into isolated domainsFastAPI · Cloud Run
- Data
- Content, media and messagesFirestore · Cloud Storage
- Contracts
- JSON Schema → Pydantic, TypeScript, Zod, formsCodegen
- Infrastructure
- Projects, IAM, secrets, triggersTerraform
- CI/CD
- Lint, test, drift checks, deploy, rollbackGitHub Actions
Stack
- frontend
- Next.js
- TypeScript
- React
- Tailwind CSS
- Zod
- backend
- Python
- FastAPI
- Pydantic
- cloud-devops
- Cloud Run
- Terraform
- GitHub Actions
- data
- Cloud Firestore
- JSON Schema