CryptoLib is a Blockchain hosted online library. The mission of CryptoLib is to have any book, available to anyone, at anytime, anywhere.
This project is a Decentralized App which means it needs to connect to the Ethereum Blockchain. We do that through Metamask.
You will need git to clone this repo.
You need NodeJS + npm. Run npm install
and npm run client-install
to install
all the dependencies for this project.
If you're making changes to the smart contracts found under the /SmartContracts/contracts
folder, you will need to install the Truffle suite with npm install truffle -g
.
If you're on windows, you might need to rename truffle-config.js
to truffle.js
To test your changes, run the Ganache CLI, and run truffle compile
to update the contract .json in the build folder, run truffle migrate
to update the changed on the Ganache CLI, and finally run truffle test
to run the mocha.js tests found under SmartContracts/LibraryTest.js