How benny45123/campusconnect works
CampusConnect is a campus article-sharing hub. Students register or sign in, browse/search articles, open a story, and use the writing interface to submit articles and images. The sampled code shows authentication, article search and publishing, and MongoDB models; the README also describes Cloudinary image hosting and academic-resource sharing. Some frontend pages and image-upload details were not sampled, and the article router is not visibly mounted in the sampled app entry point, so those connections are omitted or marked unverified.
Main entry points: App.jsx App routes · articleRoutes.js Article routes · BackendHandler.js Backend client · findArticle.js Article search
Components 25
Student experience
- App routes
frontend/src/App.jsx - Sign-in page
frontend/src/pages/Auth.jsx - Campus dashboard
frontend/src/components/DashBoard.jsx - Article feed
frontend/src/components/ArticleFeed.jsx - Story reader
frontend/src/components/selectedArticlePage.jsx - Story editor
frontend/src/pages/Write.jsx - Resource pages
frontend/src/pages/LibraryPage.jsx - App context
frontend/src/context/AppContext.jsx - Backend client
frontend/src/services/BackendHandler.js
Accounts
- Auth forms
frontend/src/components/SignInComp.jsx - Authentication
backend/services/Authentication.js - Auth routes
backend/routes/authRoutes.js - Express app
backend/app.js
Article content
- Article routes
backend/routes/articleRoutes.js - Article search
backend/controllers/findArticle.js - Single article
backend/controllers/findSingleArticle.js - Publish article
backend/controllers/postArticle.js - Auto-tagging
backend/utils/generateTags.js - Image upload
backend/controllers/uploadImage.js - Academic resources
frontend/src/pages/LibraryPage.jsx
Persistence and media
- Article records
backend/models/articleSchema.js - User records
backend/models/userSchema.js - MongoDB
- Cloudinary
Other components
- Student
Connections 29
- Student → App routes: visits
frontend/src/App.jsx - App routes → Sign-in page: routes to
frontend/src/App.jsx - App routes → Campus dashboard: routes to
frontend/src/App.jsx - App routes → Story editor: routes to
frontend/src/App.jsx - App routes → Story reader: routes to
frontend/src/App.jsx - App routes → Resource pages: routes to
frontend/src/App.jsx - Sign-in page → Auth forms: renders
frontend/src/pages/Auth.jsx - Auth forms → Backend client: calls
frontend/src/components/SignInComp.jsx - App context → Backend client: checks login
frontend/src/context/AppContext.jsx - App context → Article search: requests results
- Story editor → Backend client: submits content
frontend/src/pages/Write.jsx - Backend client → Auth routes: calls auth API
frontend/src/services/BackendHandler.js - Backend client → Article routes: calls article API
- Express app → Auth routes: mounts
backend/app.js - Auth routes → Authentication: dispatches
backend/routes/authRoutes.js - Article routes → Publish article: dispatches
backend/routes/articleRoutes.js - Article routes → Article search: dispatches
backend/routes/articleRoutes.js - Article routes → Single article: dispatches
backend/routes/articleRoutes.js - Article routes → Image upload: dispatches
backend/routes/articleRoutes.js - Article routes → Authentication: guards publishing
backend/routes/articleRoutes.js - Article search → Article records: queries
backend/controllers/findArticle.js - Article search → User records: populates authors
backend/controllers/findArticle.js - Publish article → Article records: creates records
backend/controllers/postArticle.js - Publish article → Auto-tagging: generates tags
backend/controllers/postArticle.js - Single article → Article records: loads story
backend/controllers/findSingleArticle.js - Authentication → User records: reads and writes
backend/services/Authentication.js - Express app → MongoDB: connects
backend/app.js - Image upload → Cloudinary: uploads media
README.md - Student → Academic resources: shares resources
README.md