A full-featured Medium-style blogging platform built with a modern, edge-native full-stack architecture.
- Frontend: React + TypeScript
- Backend: Cloudflare Workers + Hono.js
- Validation & Types: Zod (for runtime validation + frontend type inference)
- ORM: Prisma with connection pooling
- Database: PostgreSQL
- Authentication: JSON Web Tokens (JWT)
- 🔐 Secure authentication with JWT
- ✍️ Create, edit, and delete blog posts
- 📖 Public feed with individual post pages
- 🧩 Zod-based validation with shared types between client and server
- ⚡ Deployed on Cloudflare Workers for 24/7 availability
- 🧵 Efficient database access using Prisma connection pooling
- Edge deployment: Using Cloudflare Workers ensures minimal latency and global availability.
- Type-safe stack: TypeScript + Zod allow end-to-end type safety, reducing runtime errors.
- Connection pooling: Implemented Prisma Accelerate to optimize concurrent DB access in serverless environments.
- Learning takeaway: Gained strong understanding of connection pooling and how to maintain high availability in serverless architectures.
- Clone the repository
git clone https://github.com/scewdoosh/blog cd medium-clone