A modern blogging platform designed to empower writers and readers. Built with cutting edge technologies.
BACKEND: Cloudflare Workers using Hono framework for a serverless architecture
DATABASE: Postgres, PRISMA (ORM)
FRONTEND: React using Vite
LANGUAGE: Typescript
DEPLOYMENT̃
- Frontend : Vercel
- Backend : Cloudflare Worker
- Create Postgres instance and get the connection url from aiven.io (or any other provider of your choice)
- In top level .env file place DATABASE_URL obtained from above step. As an example you can refer
.env.example
file - Create Connection pool using PRISMA Accelerate
- Inside
wrangler.toml
file place the connection pool URL. I have placedwrangler.toml.example
file for reference - Migrate database to Postgres instance using this command
npx prisma migrate dev --name init_schema
- Generate Prisma Client ( It will be used to instantiate Prisma in our Codebase)
npx prisma generate --no-engine
Backend
- cd backend
yarn install
yarn dev
Frontend
- cd frontend
yarn install
yarn dev