Skip to content

A full-stack blog application built using MongoDB, Express, React, and Node.js. Users can register, log in, write, edit, and delete blog posts. Includes image uploads, JWT-based authentication, and a responsive UI.

Notifications You must be signed in to change notification settings

avadhutmali/MERN-Blog-Website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ MERN Blog Website

A full-stack blog web application built using the MERN stack (MongoDB, Express.js, React.js, Node.js) that allows users to register, login, create blog posts, edit, and delete them. Includes secure authentication and responsive UI.

πŸš€ Features

  • πŸ” User Authentication (Register / Login / Logout)
  • πŸ“ Create, Edit, Delete Blogs
  • 🌐 Responsive Frontend UI
  • πŸ–ΌοΈ Image Upload Support
  • πŸ—‚οΈ Blog Listing and Single Post View
  • πŸ“… Timestamp and Author Details on Posts

πŸ› οΈ Tech Stack

Frontend:

  • React.js
  • Tailwind CSS
  • Axios

Backend:

  • Node.js
  • Express.js
  • MongoDB (via Mongoose)
  • JSON Web Tokens (JWT)
  • Bcrypt.js (for password hashing)
  • Multer (for image upload)

πŸ“ Folder Structure

MERN-Blog-Website/
β”œβ”€β”€ backend/          # Node.js + Express + MongoDB API
β”‚   β”œβ”€β”€ models/
β”‚   β”œβ”€β”€ routes/
β”‚   β”œβ”€β”€ uploads/
β”‚   └── index.js
β”œβ”€β”€ frontend/         # React client
β”‚   β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   └── App.jsx
└── README.md

βš™οΈ Setup Instructions

1. Clone the repository

git clone https://github.com/avadhutmali/MERN-Blog-Website.git
cd MERN-Blog-Website

2. Setup Backend

cd backend
npm install

Create a .env file in the backend/ directory:

MONGO_URL=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
npm start

Backend runs at http://localhost:4000


3. Setup Frontend

cd ../frontend
npm install
npm run dev

Frontend runs at http://localhost:5173


πŸ“Œ TODOs

  • Comment system
  • Pagination
  • Categories & Tags
  • Rich text editor (e.g., TipTap, Quill)
  • Deploy on Render / Vercel

πŸ‘€ Author

Avadhut Mali
GitHub


πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A full-stack blog application built using MongoDB, Express, React, and Node.js. Users can register, log in, write, edit, and delete blog posts. Includes image uploads, JWT-based authentication, and a responsive UI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published