Campusify is a web application with two roles — Admin and Student — designed for college campuses. It allows users to view upcoming events, post or find lost items, check the mess menu, and share or access study notes.
- Frontend: Next.js
- Backend: Express.js
- Database: MongoDB (with Mongoose)
- Authentication: NextAuth.js
- Styling: CSS
- 🧑🎓 Student and 🛠 Admin modes with role-based access control
- 📅 Upcoming Events section
- 🧾 Lost and Found system
- 🍽 Mess Menu viewer
- 📚 Notes sharing and browsing
- 🔐 Secure authentication using NextAuth.js with bcrypt
git clone https://github.com/your-username/campusify.git
cd campusifynpm installCreate a .env.local file in the root directory with the following content:
MONGODB_URI=your_mongodb_connection_string
NEXTAUTH_SECRET=your_nextauth_secret
NEXTAUTH_URL=http://localhost:3000✅ Replace the values with your actual secrets and MongoDB connection string.
npm run devVisit: http://localhost:3000
- Passwords are never stored in plain text; they are encrypted using bcrypt
- Users cannot access routes outside their role scope
- NextAuth.js sessions ensure secure, authenticated access
.
├── models/ # Mongoose models
├── pages/ # Next.js page routes
├── public/ # Static assets
├── styles/ # CSS files
├── utils/ # Helper functions
└── .env.local # Environment variablesThis project is licensed under the MIT License.
Made with 💙 by Erin Helga D Silva