The E-Gate System is designed to streamline the entry process for students, visitors, and cab drivers at IIT Gandhinagar. This project includes modules for user authentication, QR code generation, and entry logging. Guards can verify users and grant access based on their QR codes.
Allows students to register by providing their name, roll number, mobile number, and IITGN email ID. An OTP is sent to their email for verification. Once verified, a QR code is generated for entry.
Visitors can register by providing their details and the person they are visiting. An OTP is sent to person they are visiting email for verification. Once verified, a QR code is generated for entry.
Guards can log in to access the interface for scanning QR codes and viewing logs. They can also generate QR codes for cab drivers by verifying their details.
Cab drivers need to visit Gate 1 at IIT Gandhinagar. The guard will verify their information and generate a QR code for them, which they can use for subsequent entries.
- Node.js
- MongoDB
- Clone the repository:
git clone https://github.com/dipesh6262/campus-entry-system.git
- Navigate to the project directory:
cd campus-entry-system - Install dependencies:
npm install
- Set up the environment variables in a
.envfile:MONGODB_URI=mongodb://localhost:27017/campus_entry_system PORT=3000 EMAIL_HOST=smtp.gmail.com EMAIL_PORT=587 EMAIL_USER= EMAIL_PASS= GUARD_NAME = guard GUARD_PASSWORD = password - Start the application:
node app.js
- Go to the student registration page:
/student - Fill in your details and click Verify Email.
- Enter the OTP sent to your email and click Generate QR Code.
- Go to the visitor registration page:
/visitor - Fill in your details and click Verify Email.
- Enter the OTP sent to person you are visiting email and click Generate QR Code.
- Go to the guard login page:
/guard - Enter your username and password and click Login.
- After logging in, you can scan QR codes or view scan logs.
Cab drivers should visit Gate 1 at IIT Gandhinagar. The guard will verify the driver's information and generate a QR code, which can be used for subsequent entries.
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License.