Skip to content

Nalankumar/library-management-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub License

Library Management System

The Library Management System is a Java-based CLI application utilizing MySQL for database management. It supports CRUD operations for managing book records, enables borrowing and returning books, and provides real-time availability updates. This system streamlines library processes, simplifying transactions and enhancing the user experience by efficiently managing resources and information.

Table of Contents

Tech Stack

  • Java
  • MySQL
  • Maven

Prerequisites

  1. Ensure Maven is installed: Verify Maven is installed and added to the PATH.

    • Run: mvn -v
    • If you see Maven's version details, it's correctly installed.
  2. Ensure JDK is installed: Maven requires JDK. Verify with:

    • Run: java -version
  3. Navigate to the project directory: Open Command Prompt and navigate to the directory containing your Maven project (pom.xml file).

Installation

Steps to Run the project in Popular IDEs

1. IntelliJ IDEA

  1. Import the Maven Project:

    • Open IntelliJ IDEA.
    • Click on File > Open, and select the project folder containing the pom.xml.
    • IntelliJ will automatically detect the Maven project and import it.
  2. Build the Project:

    • Open the Maven tool window (usually on the right-hand side).
    • Click on the Reload All Maven Projects button (🔄) to ensure dependencies are downloaded.
    • Build the project by clicking Lifecycle > install or Lifecycle > package.
  3. Run the Project:

    • Locate the main class (public static void main(String[] args)).
    • Right-click the main class file and select Run 'Main'.

2. Eclipse IDE

  1. Import the Maven Project:

    • Open Eclipse.
    • Go to File > Import > Maven > Existing Maven Projects.
    • Browse to the project folder and click Finish.
  2. Build the Project:

    • Right-click the project in the Project Explorer.
    • Select Run As > Maven install or Maven build (then specify the goal, e.g., clean install).
  3. Run the Project:

    • Locate the main class (public static void main(String[] args)).
    • Right-click the main class file and select Run As > Java Application.

3. Visual Studio Code

  1. Install Required Extensions:

    • Install the Maven for Java and Debugger for Java extensions.
  2. Open the Project:

    • Open VS Code.
    • Navigate to the folder containing the pom.xml file.
  3. Build the Project:

    • Open the Terminal (Ctrl + ~), and run:
      mvn clean install
  4. Run the Project:

    • Locate the main class in the Explorer.
    • Right-click the main class and select Run Java.

4. NetBeans IDE

  1. Open the Project:

    • Open NetBeans.
    • Go to File > Open Project, and select the folder containing the pom.xml.
  2. Build the Project:

    • Right-click the project in the Projects window.
    • Select Build with Dependencies.
  3. Run the Project:

    • Right-click the main class file and select Run File.

Each IDE has specific Maven support, but these general steps should work.

Steps to run the project in CMD

  1. Navigate to the project directory:

    cd path\to\your\project
  2. Run the Maven install command:

    mvn install
    • This compiles the code, runs tests, and installs the built artifact (e.g., .jar or .war file) to your local Maven repository (~/.m2/repository).
  3. Optional Parameters:

    • Skip Tests:
      mvn install -DskipTests
    • Clean and Install:
      mvn clean install
      The clean command removes previous builds before installing the new one.
  4. Verify Installation:

    • Check the target directory in your project for the generated files (e.g., .jar or .war).
    • Verify the artifact is installed in your local Maven repository (~/.m2/repository).

Contributing

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature-name.
  3. Make your changes.
  4. Push your branch: git push origin feature-name.
  5. Create a pull request.

License

This project is licensed under the MIT License.

About

The Library Management System is a Java CLI application using MySQL. It manages book records, enables borrowing, returning, availability checks, and streamlines library operations for efficient resource utilization.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages