MERN Stack Blog App
This is a full-featured blog application built using the MERN stack (MongoDB, Express.js, React.js, Node.js). Redux-toolkit for state management and Tailwind CSS for styling. The app includes features such as user authentication and authorization, an admin panel, light/dark theme switching, and the ability to comment on blog posts, like comments, search and sort blogs, and paginate the blog list.
Features
- User Authentication: Secure user login and registration with password hashing.
- User friendly & design : It is user responsive for all devices and has eye-catching design.
- User Authorization: Role-based access control (Admin/Regular User).
- Admin Panel: Full access to manage blogs, users, and comments.
- Light/Dark Theme: Switch between light and dark themes for an enhanced UI experience.
- Comment System: Users can comment on blog posts.
- Like Comments: Ability to like comments on blog posts.
- Blog Search: Search for blog posts based on titles or content.
- Blog Sorting: Sort blogs by Ascending,Descending and by category.
- Show More: Show more button for better performance and user experience.
Tech Stack
- Frontend: React.js, Redux Toolkit, Tailwind CSS
- Backend: Node.js, Express.js
- Database: MongoDB, Firebase
- State Management: Redux Toolkit
- Authentication: JSON Web Tokens (JWT)
Screenshots :
Home page

Blog Details page


Signup

Signin

Admin panel




Profile update

Getting Started
Follow these instructions to set up the project locally.
Prerequisites
Make sure you have the following installed:
Installation
Clone the repository:
git clone https://github.com/your-username/mern-blog-app.git```
Navigate to the project directory:
For the backend
cd ./server
-> npm install
For the frontend
cd ./client
-> npm install
- Set up your .env varibales :
MONGO_URI=your-mongodb-uri
JWT_SECRET=your-jwt-secret
PORT=your-port
- Run the application :
Start the backend server
cd ./server
-> npm run dev
Start the frontend development server
cd ./client
-> npm run dev