Difficulty: beginner
Estimated Time: 5 minutes

iExec V1 Tutorial : Install and run your first Dapp

DEPRECATED Please follow our SDK V2 tutorial instead DEPRECATED

iExec allows Ethereum developers to create applications that can be executed off-chain. The iExec SDK brings all the tools to develop, deploy and execute Dapps on Ethereum and iExec. Using these tools, you will be able to deploy any legacy applications in the iExec infrastructure and execute them through calls to Ethereum smart contracts.

In this tutorial, you will first deploy an application on the iExec platform, and then, you will submit a work to this dapp.

Ready? Let's go!

Congratulations, you've successfully made it through this tutorial!

You are now more familiar with the iExec SDK, and with the iExec platform.

Here are some suggestions to go further:

Finally, to help make the iExec SDK better, go to github and give it a star, thanks!


iExec Hello World

Step 1 of 3

Step 1 - Install iexec

Pre-requisite: You need to have node.js installed on your machine.

npm -g install iexec

Check iexec help:

iexec --help

Check iexec version:

iexec --version

Install and run your first application with iexec

For this tutorial, we'll work with the factorial function. Factorial is compute-intensive and thus better executed off-chain. The following command initializes a basic iexec Dapp template for you.

iexec init factorial

Your iexec Dapp is composed at the minimum of two parts:

  • an offchain app, which can be any kind of legacy application. The offchain app will be executed by the iexec decentralized cloud.
  • a smart contract that interfaces your iExec Dapp from Ethereum to the offchain app.

You will deploy those 2 parts in this tutorial, the Factorial off-chain app in the iExec network and the dapp smart contract in ethereum testnet.

Go into the created directory:

cd iexec-factorial