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.
- π 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
- React.js
- Tailwind CSS
- Axios
- Node.js
- Express.js
- MongoDB (via Mongoose)
- JSON Web Tokens (JWT)
- Bcrypt.js (for password hashing)
- Multer (for image upload)
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
git clone https://github.com/avadhutmali/MERN-Blog-Website.git
cd MERN-Blog-Websitecd backend
npm installCreate a
.envfile in thebackend/directory:
MONGO_URL=your_mongodb_connection_string
JWT_SECRET=your_jwt_secretnpm startBackend runs at http://localhost:4000
cd ../frontend
npm install
npm run devFrontend runs at http://localhost:5173
- Comment system
- Pagination
- Categories & Tags
- Rich text editor (e.g., TipTap, Quill)
- Deploy on Render / Vercel
Avadhut Mali
GitHub
This project is licensed under the MIT License - see the LICENSE file for details.