Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library Management System

Description

This app allows a librarian to perfom CRUD operations on books and library members. It utilizes the Frappe API to import books to the library

Installation

  1. Create a virtual environment
python -m venv venv

  1. Activate the Virtual Environment
source venv/bin/activate

  1. Install Dependencies
pip install -r requirements.txt

  1. Set Environment Variables. Create a .env file in the project root directory
SECRET_KEY=YourSecretKey
DEBUG=True
DATABASE_URI=sqlite:///library.db

  1. Initialize the Database . Create the initial database and apply migrations.
flask db init
flask db migrate
flask db upgrade

Usage

app/ Directory

  • routes/: This directory contains Python files that define different routes and views for your application.

    • book.py: Manages routes and views for book-related operations. Imports book using the Frappe API, adds book to the library database, allows Librarian to search for books, updates book details, deletes book details, and view all books

    • member.py: Handles routes and views for library member-related operations. Allows the librarian to search for members, update member details, view members, delete members and view all members

    • transaction.py: Contains routes and views for handling book transactions (borrowing and returning). Allows the librarian to issues ooks, return books, and view transactions

    • auth.py: Handles user-related routes and views (authentication, registration, homepage.).

-`templates/': Stores HTML templates for rendering different pages.

  • book/ Contains:

  • add_books.html for adding books to library add_books

  • import_books.html for importing books using the frappe API Import_books

  • delete_books.html for deleting books from the library delete_books

  • search_books.html for searching books in the library search_books

  • update_books.html for updating book details ![update_books](https://github.com/roseMunyiri/Library-Management-App/as sets/101321558/6406e4b5-945b-4257-b774-3c988c2e91da)

  • member/ Contains:

  • add_members.html for adding members to the library add_member

  • all_members.html for viewing all members in the library all_members

  • delete_members.html for delting members from the library delete_membersPNG

  • search_members.html for searching for members in the library search_members

  • update_members.html for updating member details update_members 02a8fd2a7)

  • transaction/ Contains:

  • issue_book.html for issuing books to members issue_book

  • return_book.html for returning books to library return_book

  • view_trandactions.html for viewing all transations view_transactioons

  • auth/ Contains:

    • home.html for viewing the homepage Home

    • register.html for user registration Register

    • login.html for member login

      login

  • static/ Contains:

    • styles.css

models.py

Defines the database models for the application, including models for books, members, and transactions.

About

A web app that allows a librarian to perform CRUD operations on books and members

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages