Skip to content

A modern blogging platform built with React, Hono, Cloudflare-workers, Typescript, Postgres, PRISMA, OpenAPI Spec, TailwindCSS, Framer Motion, Serverless backend, Vercel

Notifications You must be signed in to change notification settings

ManjinderSingh3/Blogram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blogram

A modern blogging platform designed to empower writers and readers. Built with cutting edge technologies.

Tech Stack

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

Database Setup

  • 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.examplefile
  • Create Connection pool using PRISMA Accelerate
  • Inside wrangler.toml file place the connection pool URL. I have placed wrangler.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

Steps to run project locally (In development mode)

Backend

  • cd backend
  • yarn install
  • yarn dev

Frontend

  • cd frontend
  • yarn install
  • yarn dev

About

A modern blogging platform built with React, Hono, Cloudflare-workers, Typescript, Postgres, PRISMA, OpenAPI Spec, TailwindCSS, Framer Motion, Serverless backend, Vercel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published