Welcome to ULMS! This is a simple guide to help you get this library system running on your computer from scratch.
This is a website for a university library where:
- Students can reserve books.
- Librarians can approve and return books.
- Automatic Fines: If a student returns a book late, the system calculates the fine automatically!
Before you start, you need to download and install these three things:
- Java (JDK 17): Download from here
- MySQL Database: Download MySQL Community Server
- Maven: Download from here
The system needs a place to store data. Open your MySQL Workbench or MySQL Command Line and run these commands:
CREATE DATABASE ulms_db;
CREATE USER 'ulms_user'@'localhost' IDENTIFIED BY 'ulms_pass';
GRANT ALL PRIVILEGES ON ulms_db.* TO 'ulms_user'@'localhost';
FLUSH PRIVILEGES;- Open your terminal or command prompt.
- Go to the project folder.
- Run this command to build the project:
mvn clean install
- Run this command to start the website:
mvn spring-boot:run
Once it says "Started UlmsApplication", open your web browser and go to: http://localhost:8080
| Role | Username | Password |
|---|---|---|
| Admin | admin |
admin123 |
| Librarian | librarian1 |
lib123 |
| Student | student1 |
student123 |
- Log in as librarian1.
- Go to the Reservations menu.
- You will see a book that is already overdue.
- Click Return.
- Check the Fines menu—you'll see the system automatically added a fine for the late return!
For automated AI setup instructions, see PROMPT.md.