Skip to content

A full-stack Medium-like blogging platform built with Hono, React, PostgreSQL, and Prisma. The app allows users to create, read, update, and delete articles, manage profiles. It features a modern, responsive UI and robust backend with JWT-based authentication.

Notifications You must be signed in to change notification settings

surajj-h/medium-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Medium Clone

A fully functional Medium-like platform built with Hono and React, featuring article creation, reading, updating, and deletion. The project includes user authentication, profile management.


Features

  • Authentication

    • User registration and login (JWT-based authentication).
    • Secure password hashing.
  • Articles

    • Create, update, and delete articles.
    • View articles by other users.
  • Profiles

    • View user-specific articles and profiles.
  • Backend

    • Serverless backend with Hono.
    • Robust error handling and input validation.
  • Frontend

    • Responsive and interactive UI using React.
    • Clean layout inspired by Medium's design.

Tech Stack

Backend

  • Hono: Lightweight and fast web framework.
  • PostgreSQL: Relational database for storing user and article data.
  • Prisma ORM: For database modeling and queries.
  • JSON Web Tokens (JWT): Authentication.

Frontend

  • React: Frontend library for building the UI.
  • React Router: For navigation and routing.
  • Axios: For API communication.
  • Tailwind CSS: Styling the frontend components.

Installation and Setup

Prerequisites

  • Node.js (>= 16.0.0)
  • PostgreSQL (local or cloud-based instance)

Steps

  1. Clone the repository

    git clone https://github.com/your-username/medium-clone.git
    cd medium-clone
  2. Backend Setup

    cd backend
    npm install
    cp .env.example .env
    
    # Update the .env file with your PostgreSQL URI and JWT secret
    
    npx prisma migrate dev
    npm start

3.Frontend Setup

cd frontend
npm install
npm run dev

About

A full-stack Medium-like blogging platform built with Hono, React, PostgreSQL, and Prisma. The app allows users to create, read, update, and delete articles, manage profiles. It features a modern, responsive UI and robust backend with JWT-based authentication.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published