Now that we've got you all excited, let's go through what you need to get started building with Aragon 😊
First off, we need to be sure we have the right version of Node.js installed to prevent errors.
To see which version of Node you have installed, from the command line run:
Now install aragonCLI from the command line running:
npm i -g @aragon/cli
The Aragon Builder plugin is a user-friendly tool for developing apps on top of Aragon. The plugin is automatically installed when using the boilerplate templates but we can suggest to install now with the following command:
npm i @aragon/buidler-aragon
In order to get up and running quickly, we’ll build our first DAO using some basic scaffolding. Just like real scaffolding in a construction site, when we talk about scaffolding in this context, we mean a simple prebuilt structure for your project, on top of which you can build the real one.
To create your first (scaffolded) DAO, from the command line run:
npx create-aragon-app first-dao.aragonpm.eth
Now if you look at your terminal, you should see a five step process:
Cloning app template
Installing package dependencies
Created new application first-dao.aragonpm.eth in first-dao.
Once all 5 have ticks next to them, you should run the following:
cd first-dao, just moves us into the directory where the scaffolded app was created.
yarn start, sets up everything for us in the background so we can quickly live test our DAO.
Once your browser is open at the right address, you should see a screen that looks like the one below.
As you can see on the left, this DAO is made up of two Aragon apps:
- first-dao (Counter)
Right now, we're in the Home app. This app just displays a welcome message with no possible user interactions.
Click on first-dao to open up the (slightly) more interesting Counter app.
Right now the count is at 0. Let's increment it.
Note that incrementing the counter triggers a blockchain transaction that saves the new value to the chain. But before the transaction can be sent, we need to sign it (to prove it was us that really sent it).
Click on the + button, which opens a Metamask transaction and sign it. For help on how to sign a transaction on Metamask go through these steps:
After the transaction is completed, you should see Count: 1.
Do you have a question? Leave your comments here at our Discourse forum 👇