This project is a full-stack blog management system where admins can view, edit, and delete blog posts. Built with React.js on the frontend and a Node.js + Express backend, the system ensures secure operations using JWT authentication.
It is designed to be simple, user-friendly, and efficient for managing content on a blog website. Admins can fetch all blogs, update blog details (title, content, image, author), or delete blogs directly from the dashboard.
π JWT-based authentication for secure access
π Fetch and display all blogs in a clean table
βοΈ Edit existing blog posts
ποΈ Delete blog posts with confirmation
π Protected routes for authorized access only
βοΈ Email Verifications
πΌοΈ Upload and edit blog images
π Real-time UI updates after editing or deleting blogs
π¦ Axios for smooth API calls
- ReactJS, TailwindCSS, Material UI, JavaScript, Axios, AuthContext, React-icons, SweetAlert2
- Node.js, Express.js, JWT, MongoDB, Nodemailer
mern-stack-project/
βββ backend/
β βββ config/
β β βββ db.js
β βββ controllers/
β β βββ authController.js
β β βββ blogController.js
β βββ models/
β β βββ user.js
β β βββ blogPost.js
β βββ routes/
β β βββ authRoutes.js
β β βββ blogRoutes.js
β βββ middleware/
β β βββ authMiddleware.js
β β βββ roleMiddleware.js
β βββ utils/
β β βββ sendEmail.js
β βββ .env
β βββ server.js
β βββ package.json
βββ frontend/
β βββ public/
β β βββ index.html
β βββ src/
β β βββ components/
β β β βββ banner.js
β β β βββ blogItem.js
β β β βββ Navbar.js
β β βββ pages/
β β β βββ admin.js
β β β βββ blog.js
β β β βββ createBlog.js
β β β βββ layout.js
β β β βββ manageBlogs.js
β β β βββ updateBlog.js
β β β βββ blog.js
β β β βββ Main.js
β β β βββ SignIn.js
β β β βββ SignUp.js
β β βββ App.js
β β βββ index.js
β β βββ App.css
β β β
β βββ package.json
βββ README.md
βββ .gitignore
POST /api/auth/signup - Register a new user.
{
"name": "String",
"email": "String",
"password": "String"
Email: Verification
}POST /api/auth/login - Log in an existing User.
{
"email": "String",
"password": "String"
}POST /api/blog - Create a new blog.
GET /api/blog
PATCH /api/blog/:id
DELETE /api/blog/:id
/api/auth/verify/token
Star and Fork the Repo π and this will keep us motivated.
- Clone the repository
git clone https://github.com/subhashdippu/Blogify.git- Change the working directory
cd Blogify- Install dependencies
npm install- Run the app
npm start




