Prakhar
All work

Case study

Blogster

A Medium-style blogging platform with the API on the edge — Hono on Cloudflare Workers, Postgres through Prisma Accelerate.

Role
Solo — full stack
Timeline
Jul — Oct 2024
Status
Live
Links
LiveCode
Stack
ReactViteHonoCloudflare WorkersPrisma AcceleratePostgreSQLZodJWT
Blogster sign-up page
Sign-up — the front door to the editor.

The problem

I wanted to build a real product end to end — accounts, publishing, a feed — and learn what changes when the backend doesn't run on a server you own. Blogster is a Medium-style platform: sign up, write, publish, read everyone else's posts.

How it's put together

  React + Vite (Vercel)  ──HTTPS + JWT──▶  Hono API on Cloudflare Workers
         │                                    ├─ /api/v1/user   signup · signin
         │                                    └─ /api/v1/blog   create · update · feed · read
         └─ @shrike0p/medium-common ◀── same Zod schemas ──┘
                                               │
                                     Prisma Accelerate (connection pool)
                                               │
                                          PostgreSQL

Three packages in one repo: frontend, backend, and common — the validation schemas, published to npm so both sides import the exact same rules.

Decisions that mattered

Data model

User → many Posts, each with published, createdAt and denormalised likesCount / commentsCount, plus Like and Comment tables — migrations managed with Prisma.

Tech stack

  • React + Vite with React Router, Tailwind and shadcn/ui on the frontend (deployed on Vercel)
  • Hono on Cloudflare Workers for the API
  • Prisma + Prisma Accelerate over PostgreSQL
  • Zod schemas shared through an npm package
  • JWT auth middleware

What I'd do differently

Pagination for the feed (it currently returns every post), and likes and comments in the UI — the schema already supports them.

Next case study

Baithak

Trusted small-group social plans in Bangalore — meet the crew before you turn up.

ESC