A Hostel Management System built using Java and MongoDB for efficient hostel administration.
- MongoDB (Installed and running)
- MongoDB Java Sync Driver 4.9.1
- Open IntelliJ IDEA.
- Select Open Project and name it
HostelManagementSystem
. - Ensure Maven is selected as the build system.
- Download MongoDB Java Sync Driver (4.9.1) from Maven's Repo.
- Move the downloaded JAR file to the project's
lib
folder (HostelManagementSystem/lib
).
Inside the <dependencies>
section of pom.xml
, add the MongoDB driver dependency:
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-sync</artifactId>
<version>4.9.1</version>
</dependency>
Ensure your existing code (from this GitHub repository) is inside:
HostelManagementSystem\src\main\java\org.example\HostelManagementSystem.java
Sync the file.
mongodb://localhost:27017/
- Open
HostelManagementSystem.java
in IntelliJ IDEA. - Click Run.