Feed and posts
Publishing, feed, likes, and comments.
Posts carry text, an optional image URL, a code snippet with language, a type, tags, and a collaboration flag. The recent tab pages by cursor; the top tab aggregates like counts over the last week. Code snippets render with syntax highlighting in the post card. Likes and comments both notify the post author.
What it owns
- Post creation with optional image, code snippet, tags
- Cursor-paged feed with recent and top tabs
- Likes with author notifications
- Comments with author-or-post-owner deletes
Files
File list and purposes from the folder README.
| File | Purpose |
|---|---|
frontend/src/pages/FeedPage.jsx | Feed screen with tabs and filters. |
frontend/src/components/posts/CreatePostModal.jsx | Compose and publish modal. |
frontend/src/components/posts/PostCard.jsx | Post display with code highlighting. |
frontend/src/services/postService.js | Feed, posts, likes, and comment calls. |
backend/routes/postRoutes.js | Feed, create, like, comment, upload routes. |
backend/controllers/postController.js | Feed queries, create, like, comments. |
backend/models/Post.js | Post rows with embedded likes and comments. |
Laying out Feed and posts slice…
BrowserAPIRealtimeCacheDatabaseShareddurableephemeral
Talks to
Sources: frontend/src/pages/FeedPage.jsx, backend/controllers/postController.js, backend/models/Post.js (documented at commit cdef8af)