Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sambit826059/blogging-page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Blogging Platform 🚀

A fully functional blogging platform built using React, Cloudflare Workers, Prisma, PostgreSQL, TypeScript, and Zod. This platform allows users to create, update, and retrieve blog posts while ensuring data validation, authentication, and seamless routing.

Features ✨

  • User authentication using JWT tokens.
  • Secure blog post creation, update, and retrieval.
  • Zod validation for type-safe inputs.
  • Prisma ORM integration for database management.
  • Deployed with Cloudflare Workers for scalable serverless functions.
  • Blog posts stored and managed using PostgreSQL.

Screenshots 📸

Auth Page

Screenshot from 2024-08-22 22-51-05 Screenshot from 2024-08-22 22-50-56

Blog Post Editor

Screenshot from 2024-10-20 15-58-10

Blog Post View

Screenshot from 2024-10-20 15-59-13

Tech Stack 🛠️

  • Frontend: React, TypeScript, React Router
  • Backend: Cloudflare Workers, Node.js
  • Database: PostgreSQL, Prisma
  • Validation: Zod
  • Authentication: JWT
  • Deployment: Cloudflare Workers

Installation & Setup 🔧

To set up the project locally, follow these steps:

  1. Clone the repository:
    git clone https://github.com/your-username/blogging-platform.git
    cd blogging-platform
  2. Install dependencies:
    npm install
  3. Set up environment variables in a .env file:
    DATABASE_URL=your-postgresql-url
    JWT_SECRET=your-jwt-secret
  4. Run the application:
    npm start
    

How It Works

  • User Authentication: JWT tokens are used for user sign-up and sign-in, ensuring secure access to user-specific resources.
  • Blogging Functionality: Users can create, edit, and delete blog posts, with data being validated using Zod.
  • Cloudflare Workers: Serverless functions handle backend logic efficiently, reducing server overhead.

Connect with me:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published