Skip to content

SameerDalal/library_manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library Manager

This program is made to replicate a library that manages users checking out and returning books in the library. The library manager uses MySQL to store user and book data.

Get Started

1). Clone the repository:

git clone https://github.com/SameerDalal/library_manager.git

2). Install XAMPP Control Panel with the Apache and MySQL modules to use phpMyAdmin.

Usage

Run the XAMPP Control Panel and the Apache and MySQL Modules. In the Actions tab clicking on Admin for MySQL will redirect you to phpMyAdmin. In phpMyAdmin create a new database called library_database with two tables called books and users.

books should have the following schema:

users should have the following schema:

In the method connectToSQL() you many need to change to your port connection. For example my port is 3306.

connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/library_database", "root", "");

On this line change 3360 to your port number. To find your port number look in the Port(s) column on the MySQL row in XAMPP once you have started MySQL.

Features

  • Create New User Account (New User)
  • Enter Existing User ID to procede with other functions. (Existing User)
  • Add books to DB (Library Staff)
  • Checkout Book
  • Search for book in DB
    • Print out entire book list
    • Search by ID, Author, or Book Name
  • Return a book

External Libraries

External MySQL Connector Library can be found here

About

Inventory and User Software for a Library

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages