Coder Social home page Coder Social logo

bookborrow's Introduction

Project: BookBorrow

Overview

BookBorrow is a web application designed for managing book borrowing activities. The system allows users to sign in or sign up, borrow books, and create lists of favorite books. Librarians have the additional capability to manage books and user accounts, including the ability to add, edit, or delete entries.

Technologies Used

  • Next.js: A React-based web framework that enables efficient server-side rendering and provides a great developer experience.
  • Chakra UI: A modular and accessible component library for React applications, offering a set of customizable UI components.
  • MySQL: A relational database management system used for storing and retrieving data related to users, books, and library activities.

Credits

The project utilizes the database provided by Gutendex, contributing to the richness and diversity of available books.

Features

User Features

  1. Authentication:

    • Users can sign in or sign up to access the system.
  2. Book Borrowing:

    • Users can borrow books from the available collection.
  3. Favorite Lists:

    • Users can create and manage lists of their favorite books.

Librarian Features

  1. Book Management:

    • Librarians can add new books to the system.
    • Edit existing book details.
    • Delete books that are no longer in the collection.
  2. Account Management:

    • Librarians can manage user accounts, including adding new users and editing or deleting existing accounts.

Database Structure (SQL)

Tables

  1. Book:

    • id
    • title
    • author
    • description
    • coverUrl
    • isAvailable
    • likes
  2. Borrow:

    • id
    • checkoutDate
    • dueDate
    • returnDate
    • userId
    • bookId
  3. Favorite:

    • userId
    • bookId
  4. Information:

    • id
    • firstName
    • lastName
    • username
    • password
    • borrowCount
    • fine
    • isBorrowable
    • roleId
  5. Role:

    • id
    • name
    • borrowLimit

Procedures

  1. borrowBook:

    • Borrow a book.
  2. deleteBook:

    • Removes a book.
  3. returnBook:

    • Return a book.
  4. favBook:

    • Add a book to favorite lists.
  5. unfavBook:

    • Remove a book from favorite lists.
  6. deleteUser:

    • Delete a user from the system.

Triggers

  1. updateBorrowable:
    • Automatically update the borrowability of the users.

Events

  1. updateFine:
    • Automatically update the fine of the users.

bookborrow's People

Contributors

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