Skip to content

ashfaq3112/fsd_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📖 My Blog Hub – MERN Blog Platform

A modern blogging platform built using Node.js, Express, MongoDB, and React (Vite).
Users can create and manage blogs, follow authors, like posts, and interact through comments — all inside a clean, responsive UI.


🚀 Features

🧑‍💻 User Accounts

  • Register, login, logout
  • JWT-based authentication
  • View and edit profile
  • View followers and following

📝 Blogging

  • Create, edit, delete blogs
  • Upload images
  • Trending & latest blog feed
  • Read full blog details

❤️ Interaction

  • Like blog posts
  • Add comments
  • Follow/unfollow authors

🎨 UI & UX

  • React + Tailwind CSS
  • Responsive design
  • Smooth navigation

🛠️ Tech Stack

Backend

  • Node.js
  • Express.js
  • MongoDB + Mongoose
  • JSON Web Token (JWT)
  • Bcrypt
  • Multer

Frontend

  • React 18
  • Vite
  • Axios
  • React Router
  • Tailwind CSS

⚡ Getting Started

1️⃣ Install dependencies

npm install

2️⃣ Create .env file

PORT=3000
MONGO_URI=<your mongodb url>
JWT_SECRET=<your secret>

3️⃣ Start development

npm run dev

🔌 API Overview Auth

  • POST /login
  • POST /register

Blogs

  • GET /api/blogs
  • GET /api/blogs/:id
  • POST /api/blogs/create

Users

  • GET /api/user/:id
  • POST /api/user/:id/follow

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published