We have created a detailed GitHub Wiki documentation of the project with futher background information.
This is a depiction of how the scientific tree of knowledge is branching out for a given seeding problem. It is also a representation of our programms structure. Fractal Tree Simulation code here!
The DApp was written using truffle framework. The files to run the SciDapp are
app.css inside .../app/ and
MetaCoin.sol in ../contracts/
For testing the files we recommend to download and compile the Truffle Webpack and follow the following workflow:
- Install truffle framework, unpack webpack, install ganache as local blockchain.
- Start ganache and the web lite server (npm run dev). Watch out that the truffle.js file of your truffle folder has the same port as ganache is listening to.
- Copy Index.html, app.js, app.css and MetaCoin.sol in the corresponding folders (replace the files)
- Compile and deploy the script using truffle compile and truffe deploy (--reset)
- http://localhost:8080/ should display the website. To interact with the block chain have MetaMask running, and set it to the correct RPC (ganache on Port 8545 (confirm this with ganache))
- For testing purposes create 3 Accounts (It works also with more accounts, not with less, as voting becomes meaningless and the voting will never "end")
- Play around with it.
! If you switch between users/ MetaMask accounts in MetaMask press refresh on the browser!
https://github.com/SciDappSDG/futurehack/wiki/Flow-diagram-of-Sci%C4%90App-Smart-contracts The recursiveness has not yet been implemented. We have created the "seed" though. In the end this recursive structure (contract creates a contract) will lead to the structure of a Merkle Tree.
https://github.com/SciDappSDG/futurehack/wiki/Token-mechanics
Have fun playing!

