A P2P Book Sharing/Virtual Library DApp that allows users to lend books to each other. The UI is a modified version of the Pet Shop example.
- Clone the repo. Install
truffle
andganache-cli
. - In the root of the directory, compile using
truffle compile
. - Run
ganache-cli
from another terminal window. The project uses port 8545 for all intents and purposes. - Migrate the contracts
truffle migrate
. - Run
npm run dev
to start thelite-server
. - Connect with MetaMask or provider of your preference to perform transactions, and import the keys generated by ganache-cli after setting RPC server to
127.0.0.1:8545
. - The DApp would be accessible at
://localhost:3000
.
- Contract:
SimpleLibrary.sol
inContracts
folder. - Tests:
simple_library.test.js
inTests
folder. - Migrations are located in
Migrations
. - UI files are present in the
src
folder.
- avoiding_common_attacks.md
- design_pattern_decisions.md
- deployed_addresses.txt
- The contract was tested with MythX and no high level vulnerabilities were found.