This is the Truffle project for alarm storage smart contract which stores IPFS hash that stores object detection alarm information generated from iOS devices. cam X is the iOS app I developed to interact with this smart contract.
-
Install Node.js, npm, Truffle Framework, Ganache-cli
-
Run "npm install --save-dev chai truffle-assertions" to install chai and truffle-assertions libraries.
-
Run "Truffle compile" to compile the contract.
-
Run "Truffle migrate" to migrate contracts to locally running ganache-cli test blockchain on port 8545
-
Run "Truffle test" to run test suite.