π PrepVerse
PrepVerse is a full-stack web application built to connect students, alumni, and Training & Placement (T&P) cells. It enables efficient blog sharing, alumni interaction, and challenge participation to support placement preparation.
βοΈ Core Features (As Implemented)
π¨βπ Student
- Register/Login using JWT-based auth
- View and participate in coding challenges
- Access blog posts and alumni content
π§βπΌ Alumni
- Register/Login as alumni
- Post blog entries
- Access relevant student content
π’ Alumni Admin / T&P Cell
- Manage alumni users
- Post and monitor challenges
- Moderate blog content
π§± Tech Stack
Backend (Node.js + Express)
- Authentication: JWT
- Database: MongoDB with Mongoose
- File Uploads: Multer, Cloudinary
- Mailing: Nodemailer
- Middleware: Role-based Auth (student, alumni, admin)
Frontend (React + Vite)
- Routing: React Router v7
- Styling: Tailwind CSS
- API Calls: Axios
- Notifications: React Toastify
π Folder Structure (Key Parts)
PrepVerse/ βββ backend/ β βββ controllers/ # Business logic β βββ models/ # Mongoose schemas β βββ routes/ # API endpoints β βββ middlewares/ # Auth middleware β βββ config/ # DB, mailer, cloudinary config β βββ utils/ # File upload handler (multer) β βββ server.js # Express entry point βββ frontend/ β βββ src/ # React codebase β βββ tailwind.config.js # Tailwind CSS setup β βββ vite.config.js # Vite build tool
π Getting Started
1οΈβ£ Clone and Setup
git clone https://github.com/your-username/PrepVerse.git cd PrepVerse
2οΈβ£ Backend Setup
cd backend npm install cp .env.example .env # Add your Mongo URI, JWT secret, etc. npm run dev
3οΈβ£ Frontend Setup
cd ../frontend npm install npm run dev
Open http://localhost:5173 in your browser.
π Environment Variables (backend/.env)
MONGO_URI=your_mongo_uri JWT_SECRET=your_jwt_secret CLOUDINARY_CLOUD_NAME=your_cloud_name CLOUDINARY_API_KEY=your_api_key CLOUDINARY_API_SECRET=your_api_secret EMAIL=your_email EMAIL_PASS=your_email_password
π« .gitignore Recommendation
node_modules/ .env allCredentials.txt