The Flip Smart Contract part 1 : Setting up the development environment
Before writing anything we need to prepare the ground
Installing nodejs and npm
AssemblyScript use npm, the same package manager than nodejs, you can install nodejs and npm by the way you prefer.
This tutorial works for node v18.12.1, other versions have not been tested.
Installing mxpy
In order to build AssemblyScript smart contracts you should have erdpy installed. To do so you can check the official documentation.
Install mxpy using the mxpy-up or pip method, this ensures that it will be installed in the default path
Choosing a IDE
There is plenty code editors that allow you to code in AssemblyScript since any TypeScript editor works. The most popular one is VSCode. If you already have a JetBrains licence, WebStorm is also an excellent choice.
Next up
The setting up part of this tutorial is finished. You have now an fully working development environment for writing AssemblyScript smart contracts. In the next part we will discuss about the flip.
Last updated