Fully onchain version of Treatify, running on Ethereum, IPFS and 3box.
Agreement text is stored on IPFS, and is private to the participants of the agreement.
Once signed, the agreement text is hashed, and the hash result is stored onchain.
-
Run the development console.
truffle develop
-
Compile and migrate the smart contracts. Note inside the development console we don't preface commands with
truffle
.compile; migrate;
-
In the
client
directory, we run the React app. Smart contract changes must be manually recompiled and migrated.// in another terminal (i.e. not in the truffle develop prompt) cd client npm run dev
-
To run the tests.
// inside the development console. test // outside the development console.. truffle test
-
To build the application for production, use the build script. A production build will be in the
client/build
folder.// ensure you are inside the client directory when running this npm run build