How nishalkc/bloging-app works
Blogify is a MERN blogging platform. Readers browse and view posts; registered authors authenticate, create or edit posts (optionally with cover images), and manage them from a dashboard. The React app routes users to these screens and makes credentialed API requests; Express routes requests through validation and authentication to controllers, which use MongoDB models and Cloudinary for images. The README also lists search, category filtering, and pagination, but the sampled source does not show their implementation or request wiring, so those relationships are not inferred here.
Main entry points: App.jsx App router · Api.jsx HTTP client · blogRoutes.js Blog routes · userRoutes.js User routes
Components 27
React application
- App router
client/src/App.jsx - Navigation
client/src/components/Navbar.jsx - Protected routes
client/src/components/ProtectedRoutes.jsx - Browse posts
client/src/Pages/Home.jsx - Post details
client/src/Pages/BlogDetails.jsx - Create post
client/src/Pages/Createblog.jsx - Edit post
client/src/Pages/UpdateBlog.jsx - Author dashboard
client/src/Pages/Dashboard.jsx - User profile
client/src/Pages/Profile.jsx - Login and register
client/src/Pages/Login.jsx - Logout
client/src/Pages/Logout.jsx - Post card
client/src/components/Blog.jsx - HTTP client
client/src/services/Api.jsx
API routing
- Express app
server/app.js - User routes
server/routes/userRoutes.js - Blog routes
server/routes/blogRoutes.js
Identity and content
- Request validation
server/middleware/validateMiddleware.js - JWT authentication
server/middleware/islogined.js - User controller
server/controllers/usercontroller.js - Blog controller
server/controllers/blogcontroller.js
Data and media
- Database connection
server/config/db.js - User records
server/models/userModel.js - Blog records
server/models/Blog.js - Image upload parsing
server/config/Multer.js - Image hosting
server/config/cloudinary.js
Other components
- Visitor or author
- MongoDB
Connections 36
- Visitor or author → App router: uses
client/src/App.jsx - App router → Navigation: renders
client/src/App.jsx - App router → Browse posts: routes to
client/src/App.jsx - App router → Post details: routes to
client/src/App.jsx - App router → Create post: routes to
client/src/App.jsx - App router → Edit post: routes to
client/src/App.jsx - App router → Author dashboard: routes to
client/src/App.jsx - App router → User profile: routes to
client/src/App.jsx - App router → Login and register: routes to
client/src/App.jsx - App router → Logout: routes to
client/src/App.jsx - App router → Protected routes: wraps routes
client/src/App.jsx - Browse posts → Post card: renders
client/src/Pages/Home.jsx - Author dashboard → Post card: renders
client/src/Pages/Dashboard.jsx - Browse posts → HTTP client: requests data
client/src/Pages/Home.jsx - Post details → HTTP client: requests data
client/src/Pages/BlogDetails.jsx - Create post → HTTP client: submits post
client/src/Pages/Createblog.jsx - Edit post → HTTP client: loads and updates
client/src/Pages/UpdateBlog.jsx - Author dashboard → HTTP client: requests data
client/src/Pages/Dashboard.jsx - User profile → HTTP client: requests data
client/src/Pages/Profile.jsx - Login and register → HTTP client: requests auth
client/src/Pages/Login.jsx - Logout → HTTP client: requests logout
client/src/Pages/Logout.jsx - HTTP client → Express app: calls API
- Express app → User routes: mounts at /user
server/app.js - Express app → Blog routes: mounts at /blog
server/app.js - User routes → Request validation: validates inputs
server/routes/userRoutes.js - User routes → JWT authentication: checks identity
server/routes/userRoutes.js - User routes → User controller: dispatches requests
server/routes/userRoutes.js - Blog routes → Request validation: validates posts
server/routes/blogRoutes.js - Blog routes → JWT authentication: checks identity
server/routes/blogRoutes.js - Blog routes → Image upload parsing: parses image
server/routes/blogRoutes.js - Blog routes → Blog controller: dispatches requests
server/routes/blogRoutes.js - User controller → User records: reads and writes
server/controllers/usercontroller.js - Blog controller → User records: reads and writes
server/controllers/blogcontroller.js - Blog controller → Blog records: reads and writes
server/controllers/blogcontroller.js - Blog controller → Image hosting: uploads images
server/controllers/blogcontroller.js - Database connection → MongoDB: connects