How kunaal438/mern-blogging-website works
Project type and purpose
• This is a Full-Stack MERN Blogging Website (MongoDB, Express, React, Node.js).
• Purpose: allow users to register/log in (Google Auth), write and publish blog posts (with EditorJS), comment, like, receive notifications, edit their profile, search content, and manage drafts via a dashboard.
File structure
• Top-level: two folders—“blogging website - frontend” and “server”.
• Frontend:
• Built with React (Vite) + TailwindCSS.
• src/common: utility wrappers for AWS, Firebase, date formatting, pagination, session, animations.
• src/components: reusable UI components (navbar, blog-card, comment card, loader, etc.).
• src/pages: route-level pages (home, blog page, editor, dashboard, profile, login, 404, etc.).
• Configuration: package.json, postcss.config.js, tailwind.config.js, vite.config.js.
• Server:
• server.js: Express app + route handlers.
• /Schema: Mongoose models (User, Blog, Comment, Notification).
• requests.rest: Postman-like definitions of all REST endpoints.
• package.json: dependencies (express, mongoose, cors, etc.).
README for additional insights
• Features: Google Authentication, EditorJS, dynamic routes, search, nested comments, notifications, mobile-responsive animations.
Final recommendations
• Sequence flow for key user journeys (e.g., “Create Post” path).