GithubHelp home page GithubHelp logo

library's Introduction

Library Management System API

By Nwatu Ifeanyichukwu Ernest

CI/CD Workflow

Overview

A RESTful API built with Java and Spring Boot for managing a library's book inventory and lending system. Users can perform various operations such as managing books, users, and book loans.

Table of Contents

Installation

To set up the Library Management System API, follow these steps:

  1. Clone the repository: git clone https://github.com/codecharlan/library.git
  2. Navigate to the project directory: cd library
  3. Install the required dependencies using Maven:
    mvn clean install
  4. Build the application
    mvn clean package

Prerequisites

Input and output data are formatted in JSON.

Running the Application

To begin using the Library Application, follow these steps:

  1. Start the application with:
    mvn spring-boot:run
    The application will start on the default port (8080)

API Endpoints

The API exposes the following endpoints:

Endpoint HTTP Method Description
/books GET Retrieve a list of all books
/books POST Add a new book to the library
/books/{id} GET Retrieve details of a specific book
/books/{id} PUT Update details of a specific book
/books/{id} DELETE Remove a book from the library
/users GET Retrieve a list of all users
/users POST Add a new user
/users/{id} GET Retrieve details of a specific user
/users/{id} PUT Update details of a specific user
/users/{id} DELETE Remove a user from the system
/loans POST Record a new loan
/loans GET Retrieve a list of all loans
/loans/{id} GET Retrieve details of a specific loan
/loans/{id}/return?returnDate={returnDate} PUT Mark a loan as returned

For comprehensive API usage details, refer to our

Swagger: Swagger Documentation.

Postman: Postman Documentation.

Testing the Application

The Library application includes a set of unit tests to ensure the functionality of the application. To run the tests, use the following command:

   mvn test

Technology Used:

  • Java 17
  • SpringBoot
  • Maven
  • Spring Security
  • Spring Data JPA
  • Docker
  • Lombok
  • CI/CD
  • Junit & Mockito
  • Git
  • Swagger
  • Postman

Assumptions

  • Email address is unique for every user in the application.
  • Isbn is unique for every book created.
  • Return date should not be before loan date.

License

The Library application is licensed under the MIT License.

Feel free to reach out with any questions, feedback, or suggestions.

library's People

Contributors

codecharlan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.