CampusConnect is a role-based web application for students and administrators. This project uses a simple HTML/CSS/JavaScript frontend and a Node.js + Express backend with MongoDB Atlas.
- Student/Admin registration and login
- Student dashboard with assignments and job opportunities
- Admin panel to manage students, assignments, and jobs
- Role-based access control using JWT
- MongoDB Atlas database integration
- Install dependencies:
npm install
- Create a MongoDB Atlas database:
- Go to https://www.mongodb.com/cloud/atlas and sign up for a free account.
- Create a new cluster and database user.
- Allow your IP address in Network Access.
- Copy the connection string (URI) from the Atlas dashboard.
- Create your
.envfile:Then opencp .env.example .env
.envand replace values:MONGODB_URI=your_mongodb_atlas_connection_string JWT_SECRET=your_jwt_secret_key PORT=5000 - Start the backend server:
npm run dev
- Open the frontend:
- Open
frontend/index.htmlin your browser. - Or use a simple HTTP server if you prefer.
- Open
- The backend runs on port 5000 by default.
- The frontend uses static HTML pages and JavaScript to talk to backend APIs.
- Use GitHub for version control and commit often with clear messages.