How nikhilpatel9/blogosphere works
Project type and purpose
• This is a full-stack blogging platform (“BlogoSphare”) with a Node/Express/MongoDB backend and a React-based frontend.
• Users can sign up, log in (with OAuth via Firebase), create and consume posts, comment, contact, and receive notifications. An admin dashboard provides management endpoints.
File structure
• Top-level folders:
• api/ – Express app organized in MVC style (controllers, models, routes, utils)
• clint/ – React client app (JSX/Vite) plus a nested “BlogoSphare” folder (TypeScript CRA)
• api/ highlights:
• api/index.js – Express entrypoint
• api/models/*.model.js – Mongoose schemas (User, Post, Comment, Contact, Notification, Count)
• api/controllers/*.controller.js – Request handlers
• api/routes/*.route.js – Route definitions
• api/utils – Error handling, user verification middleware
• clint/ highlights:
• src/ – React components, pages, Redux store, firebase.js integration
• components/ – Reusable UI: PostCard, CommentSection, Dashboard widgets, PrivateRoute, ThemeProvider
• pages/ – Route targets (Home, SignIn, SignUp, Dashboard, CreatePost, etc.)
• redux/ – Global state slices for user and theme
• public/index.html – Single-page container
• tailwind.config.js, postcss.config.js – Styling
README
• Confirms the platform’s purpose (create/share/discover content).
• Shows user and admin dashboard screenshots.