How kar2831/blogsphere works
This is a small blog-post CRUD application: a browser UI creates posts and lists, edits, and deletes them through an Express API backed by MongoDB. The frontend entry renders the app, which composes the create form and post list; those components make HTTP requests to the API routes, which use the Post model for persistence. The shown source supports these main paths; other runtime behavior is not inferred from the unsampled files.
Main entry points: postRoutes.js Post Routes · App.jsx App Layout · CreatePost.jsx Create Post · PostList.jsx Post List
Components 9
Frontend
- React Entry
frontend/src/main.jsx - App Layout
frontend/src/App.jsx - Create Post
frontend/src/components/CreatePost/CreatePost.jsx - Post List
frontend/src/components/PostList/PostList.jsx
Backend API
- Post Routes
backend/routes/postRoutes.js - API Server
backend/server.js
Persistence
- Post Model
backend/models/Post.js
Other components
- User
- MongoDB
Connections 10
- React Entry → App Layout: renders
frontend/src/main.jsx - App Layout → Create Post: renders
frontend/src/App.jsx - App Layout → Post List: renders
frontend/src/App.jsx - User → Create Post: submits
frontend/src/components/CreatePost/CreatePost.jsx - User → Post List: manages posts
frontend/src/components/PostList/PostList.jsx - Create Post → Post Routes: POST request
frontend/src/components/CreatePost/CreatePost.jsx - Post List → Post Routes: CRUD requests
frontend/src/components/PostList/PostList.jsx - API Server → Post Routes: mounts routes
backend/server.js - Post Routes → Post Model: queries and updates
backend/routes/postRoutes.js - API Server → MongoDB: connects
backend/server.js