The current state of the frontend and the eos chain can be accessed here: http://ipfs.drrrive.com:8080/ipfs/QmZ6tkDgbDgoiruX6HPWtrYLzbQiDQ6zNvA9H6JJMtYv1Q/#
Make sure that you've installed EOS, its CLI-Tools and the Docker Node (see https://github.com/EOSIO/eos/wiki/Local-Environment).
Please also exchange the keys in the commands you generated.
Edit the file ~/Library/Application\ Support/eosio/nodeos/config/config.ini in order to allow cors:
access-control-allow-origin = *
nodeos -e -p eosio --plugin eosio::wallet_api_plugin --plugin eosio::chain_api_plugin --plugin eosio::account_history_api_plugin
$ curl http://127.0.0.1:8888/v1/chain/get_info
{"server_version":"f5cc977a","head_block_num":296,"last_irreversible_block_num":295,"head_block_id":"000001280e55867acabbf1b9ff82a0b2dfe3e038ab4ea0580f06eeb4c226adeb","head_block_time":"2018-04-12T05:59:51","head_block_producer":"eosio"
$ cleos wallet create
Creating wallet: default
Save password to use in the future to unlock this wallet.
Without password imported keys will not be retrievable.
"PW5JFJgyTCvzyhWHk1yz3yuMKrMtYWddsBoGN4A2YXsjG7bk9LZPA"
cleos wallet unlock --password PW5JFJgyTCvzyhWHk1yz3yuMKrMtYWddsBoGN4A2YXsjG7bk9LZPA
$ cleos create key
Private key: 5KdCF7dhNReA72xgetKkMffWF7PWXH3g85zi36gmSfZUCgoXWJ8
Public key: EOS7VPcVaaYQkh8kEJRqRPR5mKMLPAhu7DCnTTkyoYoBrifBjc9gx
cleos wallet import 5KdCF7dhNReA72xgetKkMffWF7PWXH3g85zi36gmSfZUCgoXWJ8
The bios contract provides some basic functionalities in order to make our contract working properly.
cd <EOS_FOLDER>/build/contracts/eosio.bios
cleos set contract eosio ../eosio.bios -p eosio
cleos create account eosio slant EOS7VPcVaaYQkh8kEJRqRPR5mKMLPAhu7DCnTTkyoYoBrifBjc9gx EOS7VPcVaaYQkh8kEJRqRPR5mKMLPAhu7DCnTTkyoYoBrifBjc9gx
./deploy
./deploy
cleos push action slant addtopic '["slant", "Sollte Grillen auf der Terrasse verboten werden?"]' -p slant
cleos get table slant slant topic
cleos push action slant castvote '{"topic_id": "0", "author": "Mickey", "yesno": "0", "reason": "Darum"}' -p slant
cleos get table slant slant vote
cleos get table slant slant topic
The frontend is written in react.
cd frontend && npm start
Exchange the key in frontend/src/EosConnector.js with the one you generated above.
cd frontend && npm run build
cd frontend && npm test