Our application uses PostgreSQL database. See Installation guide in the docs.
For Debian based systems:
sudo apt install postgresql
Change the database URL in src/database.py
. URL format should be postgresql://<username>:<password>@<host>:<port>/<database_name>
. ./venv/bin/activate # activate virtual environment
## Install requirements
pip install -r requirements.txt
## Run the application
flask --app src run
Librarian will be able to the Number of Books with and without Copies in the database, total number of books issued, total members, total member with dues, total dues in the index page.
- Librarian can change their password by clicking
<Profile photo>
->Change Password
- Logging out the application can be done by
<Profile photo>
->Logout
A form is provided to librarian to give details about the books he/she want to import. All the fields are optional. Books will be fetched from frappe API.
All the books in the database will be listed here with available quantity (number of copies currently available in library).
Books can be issued from here by clicking the Issue
button.
- Books can be issued by clicking the
Issue
button. - We can query the books list by the
book title
andbook authors
There are two ways to issue a book:
- By clicking
Issue
button in the/books/
page. Every information will be autofilled except Member ID. (preffered) - Manually entering the details.
- Librarian have to type
Book ID
. - When the focus is lost in Book ID input field,
title
andauthors
will be autofilled. - When librarian enters any incorrect data, error will be show.
- Librarian have to type
All the books issued will be listed here. Details like Issued date
, Number of days since issued
will also be shown here.
- Books can be returned by clicking the
Return
button. - Dues can be paid by clicking the
Pay Rent
button. - We can query the issued books list by the
book title
andbook authors
There are two ways to return a book:
- By clicking
Return
button in the/books/issued
page. Every information will be autofilled. Librarian can only change the return date. (preffered) - Manually entering the details.
- Library will enter the Book and Member ID. We can also change the return date.
Members can pay the due when returning book or later. Accordingly, the Paid return charge
checkbox will be checked.
Librarian will enter the details like name
, phone
, address
.
Member details will be shown here.
- Remove a member by pressing
Remove
button. - Update a member by pressing
Update
button. - Query the members list by
ID
,Name
.
See View Member
There are two ways to update a member:
- By clicking
Update
in/members
page. (preffered) - Manually entering the details.
- Librarian has to enter
Member ID
. - The member details will be autofilled. So we can edit the information.
- Librarian has to enter