A full-stack blogging platform built with React, TypeScript, and Cloudflare Workers, featuring user authentication and blog post management.
🚀 Live Demo: Blog Web Platform
The project is organized into three main components:
Frontend/
: React TypeScript application (deployed on Vercel)Backend/
: Cloudflare Workers APICommon/
: Shared TypeScript types and validation schemas
- User authentication (signup/signin)
- Create and publish blog posts
- Draft management
- Personal dashboard
- Responsive design
- Real-time blog post updates
- React 18
- TypeScript
- Tailwind CSS
- Vite
- React Router DOM
- Axios
- Cloudflare Workers
- Hono (Backend Framework)
- Prisma (ORM)
- PostgreSQL
- JWT Authentication
- Zod (Schema Validation)
- TypeScript
- Frontend: Vercel
- Backend: Cloudflare Workers
- Database: PostgreSQL
- Node.js (v16 or higher)
- npm or yarn
- PostgreSQL database
- Clone the repository:
git clone <repository-url>
- Install Common package dependencies:
cd Common
npm install
- Install Backend dependencies:
cd Backend
npm install
- Install Frontend dependencies:
cd Frontend
npm install
- Start the Backend development server:
cd Backend
npm run dev
- Start the Frontend development server:
cd Frontend
npm run dev
- Deploy the Backend to Cloudflare Workers:
cd Backend
npm run deploy
- Build and deploy the Frontend to Vercel:
cd Frontend
npm run build
Create a wrangler.toml
file with:
[vars]
DATABASE_URL=""
JWT_SECRET=""
Update src/config.ts
with your backend URL:
export const BACKEND_URL = "your-backend-url"
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to submit issues and pull requests.