Giter Club home page Giter Club logo

frappe_library's Introduction

Frappe Library

This web application is designed to streamline the management processes of a local library. Librarians can efficiently track books and their quantities, manage members, handle transactions, and enforce book fees. This README provides an overview of the functionalities and endpoints available in this application.

Functionalities

  1. Base Library System Librarians can perform the following operations:

  2. Books Management: CRUD operations on books, including adding, updating, and deleting book records. Each book entry includes details such as title, author(s), ISBN, publisher, and page count.

  3. Members Management: Create, update, and delete member records. Each member is associated with their relevant information.

  4. Transactions: Record book issuances, returns, and manage associated fees.

Use Cases

  • Issue a Book: Librarians can issue books to members. Upon issuance, the book's availability status is updated, and relevant transaction details are recorded.

  • Return a Book: Members can return books to the library. Upon return, the book's availability status is restored, and applicable fees are calculated and charged.

  • Search for Books: Users can search for books by title, author, or both. The search functionality provides a convenient way to find specific books in the library's collection.

  • Charge Fees: The system automatically calculates and charges fees for overdue books. Members cannot accumulate outstanding debts exceeding Rs. 500.

Integration for Data Import

  • Librarians can import books into the system using the Frappe API. The API facilitates the retrieval of book data in batches of 20 records at a time. Key functionalities of the API include:

  • Data Retrieval: Retrieve book data based on specified parameters such as title, author, ISBN, publisher, and page count.

  • Import Books: Import retrieved book data into the application, creating corresponding book records.

Endpoints

The following endpoints are available in the backend application:

  • Import Books: POST /import-books/

  • Register Member: POST /register-member/

  • Issue Book to Member: POST /issue-book/

  • Get Issued Books: GET /issued-books/

  • Get Available Books: GET /available-books/

  • Return Book: PATCH /return-book/

  • Search Book: GET /search-book/

  • Each endpoint serves specific functionalities, facilitating seamless interaction with the library management system.

How to Use

To utilize the application effectively, follow these steps:

  • Import Books: Utilize the import-books endpoint to import books into the application from the Frappe API. Ensure correct handling of pagination for retrieving large datasets.

  • Manage Members: Register members using the register-member endpoint, providing necessary member details.

  • Issue and Return Books: Use the issue-book and return-book endpoints to handle book issuances and returns, respectively. Ensure adherence to fee policies for overdue books.

  • Search for Books: Utilize the search-book endpoint to search for specific books based on title, author, or both.

  • Retrieve Book Lists: Utilize the issued-books and available-books endpoints to retrieve lists of issued and available books, respectively. Paginate through the results for better navigation.

Local Setup

Backend:

  1. Create a virtual environment.
py -m venv .venv
  1. activate the vitual environment
source .venv/bin/activate
  1. Setup the db credentials in the .env following the example in .env.example.
  2. Run make backend to run the backend server.

Frontend:

https://github.com/Anv3sh/frappe_library_frontend

  1. Go to ./frappe_library and run.
yarn dev
  1. You can now access the frontend on localhost:3000.

frappe_library's People

Contributors

anv3sh avatar

Watchers

 avatar  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.