This repo was built with examples from ff links:
-
https://developers.eos.io/eosio-nodeos/docs/getting-the-code
-
https://steemit.com/devs/@eos-asia/eos-smart-contracts-part-1-getting-started-ping-equivalent-in-eos
-
https://medium.com/@TeaSea1/how-to-install-eos-on-windows-ac1b6c7d8369
- this is not the only way to install an eos node and may be outdated by the time you read this. Do checkout other tutorials if you get stuck.
- For Windows (using Ubuntu CLI), create a directory in C://. The path for this directory in Ubuntu CLI is /mnt/c/.
Setup EOS Node (follow: https://developers.eos.io/eosio-nodeos/docs/install-nodeos or https://medium.com/@TeaSea1/how-to-install-eos-on-windows-ac1b6c7d8369)
-
git clone https://github.com/EOSIO/eos --recursive
-
cd eos
-
./eosio_build.sh
On Windows: ./eosio_build.sh ubuntu full
- Validate Build
On Linux platforms: ~/opt/mongodb/bin/mongod -f ~/opt/mongodb/mongod.conf &
On MacOS: /usr/local/bin/mongod -f /usr/local/etc/mongod.conf &
Followed by this on all platforms: cd build make test
- Build nodeos (https://developers.eos.io/eosio-nodeos/docs/local-single-node-testnet) cd build/programs/nodeos ./nodeos -e -p eosio --plugin eosio::chain_api_plugin --plugin eosio::history_api_plugin
-
Open new terminal
-
mkdir eos-contract
-
cd eos-contract
-
git clone https://github.com/MNLBlockDevs/eos-simplepacman-contract
-
cd eos-simplepacman-contract/eosspore/contracts
-
eosiocpp -o ./spore/spore.wast spore.cpp
-
eosiocpp -g ./spore/spore.abi spore.cpp
-
cleos wallet create -n TEXT=chris
-
cleos wallet unlock -n TEXT=chris
-
cleos create key
-
store the password, public key and private keys
-
cleos wallet import [private key]
-
cleos create account eosio spore.ctr [public key] [public key]
-
cleos set contract spore.ctr ./spore -p spore.ctr
-
cleos create account eosio tester [public key] [public key]
-
cleos push action spore.ctr createentity '["tester", 0, "blue", 0]' -p tester
-
cleos push action spore.ctr moveentity '["tester", 0, 10, 10]' -p tester
-
cleos push action spore.ctr killentity '["tester", 0, 0]' -p tester
- Python 2.7
- Latest Node
cd ..
npm install
npm run dev
npm run build
npm run serve