Skip to content

chickenpie347/SimpleLibrary

Repository files navigation

SimpleLibrary

A P2P Book Sharing/Virtual Library DApp that allows users to lend books to each other. UI Preview The UI is a modified version of the Pet Shop example.

Run A Local Development Server

  1. Clone the repo. Install truffle and ganache-cli.
  2. In the root of the directory, compile using truffle compile.
  3. Run ganache-cli from another terminal window. The project uses port 8545 for all intents and purposes.
  4. Migrate the contracts truffle migrate.
  5. Run npm run dev to start the lite-server.
  6. 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.
  7. The DApp would be accessible at ://localhost:3000.

Core Files

  • Contract: SimpleLibrary.sol in Contracts folder.
  • Tests: simple_library.test.js in Tests folder.
  • Migrations are located in Migrations.
  • UI files are present in the src folder.

Rinkeby Deployment

Additional Requirements

  • avoiding_common_attacks.md
  • design_pattern_decisions.md
  • deployed_addresses.txt

Walk-through Video

Security Assessment

  • The contract was tested with MythX and no high level vulnerabilities were found.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published