Skip to content

aimensahnoun/book-library-dapp

Repository files navigation

This is a project related to the LimeAcademy trining. It is a book library dapp that allows the owner to add books, and for users to borrow and return books.

MIT License Lines of code GitHub top language

Addition of books

Adding the books is only an action that is allowed to the smart contract owner, and it is made simpler on the front-end side with a button and modal for entering the details of the book.

Book Library Dapp Book Library | Add Book Modal

Any other user that is connected the app, would not be able to see or interact with the add book button.

Borrowing and returning

Users are able to borrow and return by a simple click of a button, after a transaction is signed they become the holders of the book , and the activity feed will show their transaction.

Borrowing a book

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

#Alchemy API key for Polygon Mumbai
NEXT_PUBLIC_ALCHEMY_KEY=

#Smart contract address deployed onto Polygon Mumbai
NEXT_PUBLIC_POLYGON_CONTRACT_ADDRESS=0xa165F07937B909b907B9A68438b73B651FE4D06D

Run Locally

Clone the project

  git clone https://github.com/aimensahnoun/AimBridge

Go to the project directory

  cd my-project

Install dependencies

  npm install

  #or

  yarn instal

Start the server

  npm run dev

  #or

  yarn dev

About

A simple book library dapp. For adding, borrowing, and returning books.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published