How pkushal05/blogify works
Project type and purpose
• This is Blogify, a full-stack MERN blogging platform.
• Frontend: React + Vite + Tailwind CSS / DaisyUI / Framer Motion, with Redux Toolkit for state management.
• Backend: Node.js + Express.js REST API, MongoDB via Mongoose, JWT auth, file uploads via Multer + Cloudinary.
File structure
• client/
• src/pages, layouts, components → React view layer (routing via React Router implicit in pages).
• src/features/slices, thunks, store → Redux Toolkit (slices + async thunks).
• src/api/*.js → Axios-based API clients for auth, blogs, comments, users.
• server/
• app.js → Express app configuration (attach middlewares, routers).
• routes/ → HTTP routes per resource (auth, blog, comment, user).
• controllers/ → MVC controllers implementing business logic.
• models/ → Mongoose schemas for User, Blog, Comment.
• middlewares/ → auth (JWT verify), multer (file upload).
• db/database.js → MongoDB connection.
• utils/cloudinary.js → external image storage integration.
Key insights from README
• JWT-based authentication, RESTful endpoints, image uploads to Cloudinary.
• Responsive UI, search/filter features, author profile pages.