How shivborse6/campus-voice works
CampusVoice is a campus social-feed frontend for composing and browsing anonymous posts, liking or deleting them, and adding comments. The main flow routes a visitor through a login screen to the home feed; the login currently only navigates and does not authenticate. The home page loads and mutates posts in Firestore, while comments are kept in each post component’s local state. The README is empty, so this map reflects the supplied source and tree; unsampled behavior is not inferred.
Main entry points: Home.jsx Feed coordinator · App.jsx Routes and landing · Login.jsx Login screen · CreatePost.jsx Post composer
Components 11
App entry and routing
- React bootstrap
frontend/src/main.jsx - Routes and landing
frontend/src/App.jsx - Login screen
frontend/src/pages/Login.jsx
Social feed interface
- Feed coordinator
frontend/src/pages/Home.jsx - Top navigation
frontend/src/components/Navbar.jsx - Feed menu
frontend/src/components/Sidebar.jsx - Post composer
frontend/src/components/CreatePost.jsx - Post and comments
frontend/src/components/Post.jsx
Post persistence
- Firebase setup
frontend/src/firebase.js - Posts collection
Other components
- Visitor
Connections 15
- Visitor → Routes and landing: opens app
- React bootstrap → Routes and landing: renders
- Routes and landing → Login screen: routes to
- Routes and landing → Feed coordinator: routes to
- Visitor → Login screen: enters credentials
- Login screen → Routes and landing: navigates home
- Visitor → Feed coordinator: uses feed
- Feed coordinator → Top navigation: renders
- Feed coordinator → Feed menu: renders
- Feed coordinator → Post composer: renders
- Feed coordinator → Post and comments: renders posts
- Post composer → Feed coordinator: submits post
- Post and comments → Feed coordinator: requests like or delete
- Firebase setup → Posts collection: initializes
- Feed coordinator → Posts collection: reads and writes posts