Skip to content

ronakmaheshwari/medium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌟 Medium Clone

This is a Medium Clone built with modern web technologies. The application allows users to create, edit, and publish blog posts seamlessly.

🚀 Features

  • 📝 Create & Edit Blogs: Users can add new blog posts with a title and content.
  • 📖 View Blogs: Read all published blog posts.
  • 🔑 Authentication: Secure login and signup functionality.
  • 🌐 RESTful API: Backend services using Hono.
  • 🎨 Modern UI: Built with React and TailwindCSS for a smooth user experience.

🛠️ Tech Stack

Category Technology
🏗️ Language TypeScript
🎨 Frontend React TailwindCSS
⚙️ Backend Hono
🗄️ Database PostgreSQL + Prisma + Accelerate
🔐 Authentication JWT
📏 Runtime Validation Zod
📦 State Management React Hooks
🚀 Deployment Vercel Cloudflare Workers

📦 Installation

  1. Clone the repository:
    git clone https://github.com/ronakmaheshwari/medium.git
    cd medium
  2. Install dependencies:
    npm install
  3. Set up environment variables:
    • Create a .env file in the root directory and add:
      BACKEND_URL=http://localhost:5000
      JWT_SECRET=your_secret_key
  4. Start the development server:
    npm start

🚀 Running the Backend

  1. Navigate to the backend directory:
    cd backend
  2. Install dependencies:
    npm install
  3. Start the backend server:
    npm run dev

🌍 Deployment

  • Frontend: Deployed using Vercel
  • Backend: Deployed using Cloudflare Workers

📜 API Endpoints

Method Endpoint Description
GET /api/blogs Fetch all blogs
POST /api/blogs Create a new blog
GET /api/blogs/:id Get a specific blog
PUT /api/blogs/:id Update a blog
DELETE /api/blogs/:id Delete a blog

💡 Contributing

  1. Fork the repository.
  2. Create a new branch (feature/new-feature).
  3. Commit your changes (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature/new-feature).
  5. Open a Pull Request.

📜 License

This project is licensed under the MIT License.

📬 Contact

For any questions or suggestions, feel free to reach out:

About

Medium clone which allows users to create, edit, and publish blog posts seamlessly.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published