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.
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.
Any other user that is connected the app, would not be able to see or interact with the add book
button.
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.
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
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