Skip to main content

Run Code Examples

  1. Clone the project by running the following command:
git clone [email protected]:iotaledger/iota.js.git
  1. Change directory into the project by running the following command:
cd iota.js
  1. Check out the feat/stardust branch by running the following command:
git checkout feat/stardust
  1. Install the packages dependencies by running:
npm install
  1. The Iota package examples make use of the other packages included in this repository. You can run the following commands to set up all of them:
npm run dist-neon
npm run dist-all
  1. Change the directory to the desired how-to. For instance, the following command will change into the How To Create a Simple Connection article:
cd packages/iota/examples/simple/
  1. You can now run the example by running the following command:
npm run start