
Photography Portfolio & Client Gallery
A production photography portfolio and private client gallery for secure photo and video delivery, built with Next.js, Express, PostgreSQL and the Google Drive API.

Tech Stack
Languages
Web Development
Database Design
DevOps / Cloud
🚀 Overview
A full-stack portfolio and client gallery platform I built and deployed as a freelance project for a professional photographer. The public site showcases the photographer's work and takes booking enquiries. Clients log in to a private portal to view, stream and download their photos and videos. All media is stored on Google Drive, and the system runs in production at shotwithshots.com.
Tech Stack: Next.js, React, TypeScript, Express, PostgreSQL (Prisma), Google Drive API, FFmpeg, Docker, Caddy, GitHub Actions, Sentry
✨ Key Features
- CMS-Driven Website: The admin edits the hero, services, testimonials and about sections without touching code.
- Private Client Galleries: Secure, per-client access to photos and videos, with a lightbox, video streaming and ZIP downloads.
- Admin Dashboard: Manage clients, projects, bookings, site content and connected storage accounts.
- Multi-Account Google Drive Storage: Connect several Google accounts through OAuth, assign clients to accounts, and monitor storage and account health.
- Fast, Resumable Uploads: Large files upload in parallel chunks and resume after an interruption.
💡 Technical Challenges
-
Challenge: Uploads from overseas clients over slow, unreliable connections were extremely slow and often failed. Solution: Built resumable chunked uploads with parallel chunks and retries on each chunk, plus a dedicated upload endpoint. Throughput went from 0.1 MB/s to 4.2 MB/s, about 40× faster.
-
Challenge: Full-resolution photos (around 15 MB each) and raw videos made galleries slow to load. Solution: Pre-rendered optimised display images (about 124 KB, over 99% smaller) and used FFmpeg to transcode videos into web-friendly previews, with disk caching and range-request streaming.
-
Challenge: Depending on an external storage API (Google Drive) risked failed requests and storage left out of sync with the database. Solution: Added retries with backoff, a circuit breaker, rollback of partial uploads, and a scheduled job that detects and removes orphaned files.
-
Challenge: Keeping each client's private media secure. Solution: Used Argon2 password hashing, encrypted sessions, CSRF protection, rate limiting and file-type validation, with automated tests confirming clients can't access each other's data.
📈 Outcome / Lessons Learned
- Delivered a production system used by a real business to deliver work to its clients.
- Owned the full lifecycle, from requirements and design to deployment, monitoring and maintenance.
- Gained hands-on experience in performance optimisation, third-party API integration and application security.
- Built 120+ automated tests with CI/CD, Docker deployment, error monitoring and daily database backups.