Skip to content

operanditech/eos-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cool Story Bro

An EOSIO development workshop by @andresberrios

Required software

Building

Contract

To build the contract, you will need to run this command:

eosio-cpp -abigen -contract=coolstorybro contract/coolstorybro.cpp -o contract/coolstorybro.wasm

This will generate the WASM file and the ABI file, which you need to deploy to the blockchain.

Frontend

To run the frontend, you will need to first install its dependencies:

cd frontend
npm install

Then, run the development server and open the site in your browser:

npm run serve

Configuration

For working on the code, Visual Studio Code is recommended. You should install the C/C++ extension. You can configure it to detect the EOSIO libraries by adding their location to your include path in your settings.json like this:

"C_Cpp.default.includePath": [
    "/usr/local/Cellar/eosio.cdt/1.3.2/opt/eosio.cdt/include"
  ]

You can also add a VSCode task to build the contract more easily. Add the following task definition to your .vscode/tasks.json:

{
  "label": "Build contract",
  "type": "shell",
  "command": "eosio-cpp -abigen -contract=coolstorybro contract/coolstorybro.cpp -o contract/coolstorybro.wasm",
  "group": {
    "kind": "build",
    "isDefault": true
  }
}

About

Source code for sample dapp used for an EOSIO development workshop in Barcelona.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published