How ayush17281/campus-verse-rest-api works
Campus Verse is a college discussion platform with a React client and an Express server backed by MySQL. Students browse categorized posts, sign up or log in, and—when authenticated—publish, edit, or delete their own posts; the client also searches tech articles through a server-side API integration. The server additionally exposes a legacy EJS-rendered posts interface. The excerpts show the main client/server calls and database operations; unsampled schema and templates are represented only where the README or shown routes establish their role.
Main entry points: index.js REST API · main.jsx Client entry · App.jsx Campus UI · schema.sql MySQL database
Components 9
React client
- Client entry
client/src/main.jsx - Campus UI
client/src/App.jsx
Express server
- REST API
index.js - Sessions and auth
index.js - Post operations
index.js - EJS posts
views/index.ejs
Data and integrations
- MySQL database
schema.sql - Tech news API
Other components
- Students
Connections 9
- Students → Client entry: use
README.md - Client entry → Campus UI: renders
client/src/main.jsx - Campus UI → REST API: requests
client/src/App.jsx - REST API → Sessions and auth: routes auth
index.js - REST API → Post operations: routes posts
index.js - Sessions and auth → MySQL database: queries users
index.js - Post operations → MySQL database: queries posts
index.js - REST API → EJS posts: renders
index.js - REST API → Tech news API: fetches articles
index.js