Build medium in the following stack
-
React in the frontend
-
Cloudflare workers in the backend
-
zod as the validation library, type inference for the frontend types
-
Typescript as the language
-
Prisma as the ORM, with connection pooling
-
Postgres as the database
-
jwt for authentication